Skip to content

Commit

Permalink
api: fix unit tests, small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgooz committed Sep 20, 2018
1 parent 7163333 commit 98014f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion api/execute_executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func TestCheckServiceNotRunning(t *testing.T) {
}

func TestCheckService(t *testing.T) {
a, _ := newAPIAndDockerTest(t)
a, _ := New()
executor := newTaskExecutor(a)
s, _ := service.FromService(&service.Service{
Name: "TestCheckService",
Expand Down
5 changes: 0 additions & 5 deletions service/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"strings"
"testing"

"github.com/docker/docker/api/types"
"github.com/mesg-foundation/core/container"
"github.com/mesg-foundation/core/container/dockertest"
"github.com/mesg-foundation/core/service/importer"
Expand All @@ -17,10 +16,6 @@ import (
func newContainerAndDockerTest(t *testing.T) (*container.Container, *dockertest.Testing) {
dt := dockertest.New()

dt.ProvideInfo(types.Info{}, nil)
dt.ProvideNetworkInspect(types.NetworkResource{}, nil)
dt.ProvideNetworkCreate(types.NetworkCreateResponse{}, nil)

container, err := container.New(container.ClientOption(dt.Client()))
require.Nil(t, err)

Expand Down

0 comments on commit 98014f0

Please sign in to comment.