diff --git a/local/compose/down_test.go b/local/compose/down_test.go index 7ebf0af9e..0f876e5f1 100644 --- a/local/compose/down_test.go +++ b/local/compose/down_test.go @@ -64,7 +64,9 @@ func TestDownRemoveOrphans(t *testing.T) { ctx := context.Background() api.EXPECT().ContainerList(ctx, projectFilterListOpt(testProject)).Return( - []apitypes.Container{testContainer("service1", "123"), testContainer("service2", "789"), testContainer("service_orphan", "321")}, nil).Times(2) + []apitypes.Container{testContainer("service1", "123"), + testContainer("service2", "789"), + testContainer("service_orphan", "321")}, nil).Times(2) api.EXPECT().ContainerStop(ctx, "123", nil).Return(nil) api.EXPECT().ContainerStop(ctx, "789", nil).Return(nil) diff --git a/local/e2e/container/container_test.go b/local/e2e/container/container_test.go index 8edd20630..103cdbd97 100644 --- a/local/e2e/container/container_test.go +++ b/local/e2e/container/container_test.go @@ -101,9 +101,9 @@ func TestLocalBackendRun(t *testing.T) { fields := strings.Fields(line) if fields[0] == nginxID { nginxFound = true - assert.Equal(t, fields[1], "nginx") - assert.Equal(t, fields[2], "/docker-entrypoint.sh") - assert.Equal(t, fields[len(fields)-1], "0.0.0.0:85->80/tcp") + assert.Equal(t, fields[1], "nginx", res.Combined()) + assert.Equal(t, fields[2], "/docker-entrypoint.sh", res.Combined()) + assert.Equal(t, fields[len(fields)-1], "0.0.0.0:85->80/tcp", res.Combined()) } } assert.Assert(t, nginxFound, res.Stdout())