@@ -100,6 +100,8 @@ const (
100
100
bearerToken = "testToken1"
101
101
)
102
102
103
+ var networkNameSuffix = 1
104
+
103
105
func setupQuestDB (ctx context.Context , auth ilpAuthType ) (* questdbContainer , error ) {
104
106
return setupQuestDB0 (ctx , auth , false )
105
107
}
@@ -132,12 +134,15 @@ func setupQuestDB0(ctx context.Context, auth ilpAuthType, setupProxy bool) (*que
132
134
if err != nil {
133
135
return nil , err
134
136
}
137
+
138
+ networkNameWithSuffix := fmt .Sprintf ("%s_%d" , networkName , networkNameSuffix )
139
+ networkNameSuffix ++
135
140
req := testcontainers.ContainerRequest {
136
141
Image : "questdb/questdb:9.0.2" ,
137
142
ExposedPorts : []string {"9000/tcp" , "9009/tcp" },
138
143
WaitingFor : wait .ForHTTP ("/" ).WithPort ("9000" ),
139
- Networks : []string {networkName },
140
- NetworkAliases : map [string ][]string {networkName : {"questdb" }},
144
+ Networks : []string {networkNameWithSuffix },
145
+ NetworkAliases : map [string ][]string {networkNameWithSuffix : {"questdb" }},
141
146
Env : env ,
142
147
Mounts : testcontainers .Mounts (testcontainers.ContainerMount {
143
148
Source : testcontainers.GenericBindMountSource {
@@ -149,7 +154,7 @@ func setupQuestDB0(ctx context.Context, auth ilpAuthType, setupProxy bool) (*que
149
154
150
155
newNetwork , err := testcontainers .GenericNetwork (ctx , testcontainers.GenericNetworkRequest {
151
156
NetworkRequest : testcontainers.NetworkRequest {
152
- Name : networkName ,
157
+ Name : networkNameWithSuffix ,
153
158
CheckDuplicate : true ,
154
159
},
155
160
})
@@ -196,7 +201,7 @@ func setupQuestDB0(ctx context.Context, auth ilpAuthType, setupProxy bool) (*que
196
201
Image : "haproxy:2.6.4" ,
197
202
ExposedPorts : []string {"8443/tcp" , "8444/tcp" , "8445/tcp" , "8888/tcp" },
198
203
WaitingFor : wait .ForHTTP ("/" ).WithPort ("8888" ),
199
- Networks : []string {networkName },
204
+ Networks : []string {networkNameWithSuffix },
200
205
Mounts : testcontainers .Mounts (testcontainers.ContainerMount {
201
206
Source : testcontainers.GenericBindMountSource {
202
207
HostPath : path ,
0 commit comments