Skip to content

Commit

Permalink
fix: use identifier for networks
Browse files Browse the repository at this point in the history
  • Loading branch information
RafilxTenfen committed Aug 2, 2024
1 parent 199d0dc commit 0b50fe6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/e2e/containers/containers.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,22 @@ type Manager struct {

// NewManager creates a new Manager instance and initializes
// all Docker specific utilities. Returns an error if initialization fails.
func NewManager(identifier string, isDebugLogEnabled bool, isCosmosRelayer, isUpgrade bool) (docker *Manager, err error) {
docker = &Manager{
func NewManager(identifier string, isDebugLogEnabled bool, isCosmosRelayer, isUpgrade bool) (m *Manager, err error) {
m = &Manager{
ImageConfig: NewImageConfig(isCosmosRelayer, isUpgrade),
resources: make(map[string]*dockertest.Resource),
isDebugLogEnabled: isDebugLogEnabled,
identifier: identifier,
}
docker.pool, err = dockertest.NewPool("")
m.pool, err = dockertest.NewPool("")
if err != nil {
return nil, err
}
docker.network, err = docker.pool.CreateNetwork("bbn-testnet")
m.network, err = m.pool.CreateNetwork(m.NetworkName())
if err != nil {
return nil, err
}
return docker, nil
return m, nil
}

// ExecTxCmd Runs ExecTxCmdWithSuccessString searching for `code: 0`
Expand Down

0 comments on commit 0b50fe6

Please sign in to comment.