File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -17,17 +17,18 @@ package localstack
1717import (
1818 "context"
1919 "errors"
20+ "io"
21+ "os"
22+ "strings"
23+ "testing"
24+ "time"
25+
2026 "github.com/docker/docker/api/types/build"
2127 "github.com/docker/docker/api/types/container"
2228 "github.com/docker/go-connections/nat"
2329 "github.com/elgohr/go-localstack/internal/internalfakes"
2430 "github.com/sirupsen/logrus"
2531 "github.com/stretchr/testify/require"
26- "io"
27- "os"
28- "strings"
29- "testing"
30- "time"
3132)
3233
3334func TestInstance_Start_Fails (t * testing.T ) {
@@ -147,7 +148,8 @@ func TestInstance_Start_Fails(t *testing.T) {
147148 given : func (f * internalfakes.FakeDockerClient ) * Instance {
148149 f .ImageBuildReturns (build.ImageBuildResponse {Body : io .NopCloser (strings .NewReader ("" ))}, nil )
149150 f .ContainerInspectReturns (container.InspectResponse {NetworkSettings : & container.NetworkSettings {
150- NetworkSettingsBase : container.NetworkSettingsBase {
151+ // will remove when removed
152+ NetworkSettingsBase : container.NetworkSettingsBase { //nolint:staticcheck
151153 Ports : map [nat.Port ][]nat.PortBinding {},
152154 },
153155 }}, nil )
You can’t perform that action at this time.
0 commit comments