Skip to content

Commit bd838d8

Browse files
committed
♻️ Handle deprecation
1 parent 3bcf02e commit bd838d8

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

localstack_internal_test.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,18 @@ package localstack
1717
import (
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

3334
func 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)

0 commit comments

Comments
 (0)