@@ -100,8 +100,6 @@ const (
100100 bearerToken = "testToken1"
101101)
102102
103- var networkNameSuffix = 1
104-
105103func setupQuestDB (ctx context.Context , auth ilpAuthType ) (* questdbContainer , error ) {
106104 return setupQuestDB0 (ctx , auth , false )
107105}
@@ -134,15 +132,12 @@ func setupQuestDB0(ctx context.Context, auth ilpAuthType, setupProxy bool) (*que
134132 if err != nil {
135133 return nil , err
136134 }
137-
138- networkNameWithSuffix := fmt .Sprintf ("%s_%d" , networkName , networkNameSuffix )
139- networkNameSuffix ++
140135 req := testcontainers.ContainerRequest {
141136 Image : "questdb/questdb:9.0.2" ,
142137 ExposedPorts : []string {"9000/tcp" , "9009/tcp" },
143138 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" }},
146141 Env : env ,
147142 Mounts : testcontainers .Mounts (testcontainers.ContainerMount {
148143 Source : testcontainers.GenericBindMountSource {
@@ -154,7 +149,7 @@ func setupQuestDB0(ctx context.Context, auth ilpAuthType, setupProxy bool) (*que
154149
155150 newNetwork , err := testcontainers .GenericNetwork (ctx , testcontainers.GenericNetworkRequest {
156151 NetworkRequest : testcontainers.NetworkRequest {
157- Name : networkNameWithSuffix ,
152+ Name : networkName ,
158153 CheckDuplicate : true ,
159154 },
160155 })
@@ -201,7 +196,7 @@ func setupQuestDB0(ctx context.Context, auth ilpAuthType, setupProxy bool) (*que
201196 Image : "haproxy:2.6.4" ,
202197 ExposedPorts : []string {"8443/tcp" , "8444/tcp" , "8445/tcp" , "8888/tcp" },
203198 WaitingFor : wait .ForHTTP ("/" ).WithPort ("8888" ),
204- Networks : []string {networkNameWithSuffix },
199+ Networks : []string {networkName },
205200 Mounts : testcontainers .Mounts (testcontainers.ContainerMount {
206201 Source : testcontainers.GenericBindMountSource {
207202 HostPath : path ,
0 commit comments