Skip to content

Commit

Permalink
NewLocalNetwork: parameterize network name
Browse files Browse the repository at this point in the history
addresses review comment ava-labs/icm-contracts#401 (comment)
  • Loading branch information
feuGeneA committed Jul 11, 2024
1 parent 91126a6 commit 90a0ced
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/local/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func TestE2E(t *testing.T) {
var _ = ginkgo.BeforeSuite(func() {
// Create the local network instance
LocalNetworkInstance = NewLocalNetwork(
"teleporter-test-local-network",
warpGenesisTemplateFile,
[]SubnetSpec{
{
Expand Down
8 changes: 6 additions & 2 deletions tests/local/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ type SubnetSpec struct {
NodeCount int
}

func NewLocalNetwork(warpGenesisTemplateFile string, subnetSpecs []SubnetSpec) *LocalNetwork {
func NewLocalNetwork(
name string,
warpGenesisTemplateFile string,
subnetSpecs []SubnetSpec,
) *LocalNetwork {
ctx := context.Background()
var err error

Expand Down Expand Up @@ -105,7 +109,7 @@ func NewLocalNetwork(warpGenesisTemplateFile string, subnetSpecs []SubnetSpec) *
}

network := subnetEvmTestUtils.NewTmpnetNetwork(
"teleporter-test-local-network",
name,
allNodes,
tmpnet.FlagsMap{},
subnets...,
Expand Down

0 comments on commit 90a0ced

Please sign in to comment.