Skip to content

Commit 9c979f2

Browse files
committed
Update integration tests
1 parent a524747 commit 9c979f2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/integration/utils/test_container_utils.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import (
99
"regexp"
1010
"testing"
1111

12+
"github.com/docker/docker/api/types/container"
13+
1214
"github.com/docker/docker/api/types"
1315
"github.com/stretchr/testify/assert"
1416
"github.com/stretchr/testify/require"
@@ -73,6 +75,11 @@ func StartContainer(
7375
},
7476
ExposedPorts: []string{"9091/tcp"},
7577
WaitingFor: wait.ForLog(parameters.LogMessage),
78+
HostConfigModifier: func(hostConfig *container.HostConfig) {
79+
hostConfig.ExtraHosts = []string{
80+
"host.docker.internal:host-gateway",
81+
}
82+
},
7683
Networks: []string{
7784
containerNetwork.Name,
7885
},

0 commit comments

Comments
 (0)