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