Skip to content

Commit

Permalink
just revert all the testcontianers-go network stuff and ignore the on…
Browse files Browse the repository at this point in the history
…e file from the troublesome linter (see golangci/golangci-lint#741)
  • Loading branch information
hughesjj committed Mar 1, 2024
1 parent a29bf1e commit 9a82044
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/testutils/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//lint:ignore SA1019

package testutils

import (
Expand Down Expand Up @@ -484,6 +486,7 @@ func (container *Container) createNetworksIfNecessary(req testcontainers.Generic
return err
}
for _, networkName := range container.ContainerNetworks {
//nolint:staticcheck
query := testcontainers.NetworkRequest{
Name: networkName,
}
Expand All @@ -492,6 +495,7 @@ func (container *Container) createNetworksIfNecessary(req testcontainers.Generic
return err
}
if networkResource.Name != networkName {
//nolint:staticcheck
create := testcontainers.NetworkRequest{
Driver: "bridge",
Name: networkName,
Expand Down

0 comments on commit 9a82044

Please sign in to comment.