Skip to content

Commit

Permalink
skip setting EVM networks in node config for nonEVM e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aalu1418 committed Jul 5, 2024
1 parent f0ab15f commit 17c4552
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions integration-tests/docker/test_env/test_env_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,18 +448,21 @@ func (b *CLTestEnvBuilder) Build() (*CLClusterTestEnv, error) {
b.te.EVMNetworks = append(b.te.EVMNetworks, &networkConfig)
}

// only add EVM networks to node config if running EVM tests
dereferrencedEvms := make([]blockchain.EVMNetwork, 0)
for _, en := range b.te.EVMNetworks {
network := *en
if en.Simulated {
if rpcs, ok := b.te.rpcProviders[network.ChainID]; ok {
network.HTTPURLs = rpcs.PrivateHttpUrls()
network.URLs = rpcs.PrivateWsUrsl()
} else {
return nil, fmt.Errorf("rpc provider for chain %d not found", network.ChainID)
if b.isEVM {
for _, en := range b.te.EVMNetworks {
network := *en
if en.Simulated {
if rpcs, ok := b.te.rpcProviders[network.ChainID]; ok {
network.HTTPURLs = rpcs.PrivateHttpUrls()
network.URLs = rpcs.PrivateWsUrsl()
} else {
return nil, fmt.Errorf("rpc provider for chain %d not found", network.ChainID)
}
}
dereferrencedEvms = append(dereferrencedEvms, network)
}
dereferrencedEvms = append(dereferrencedEvms, network)
}

nodeConfigInToml := b.testConfig.GetNodeConfig()
Expand Down

0 comments on commit 17c4552

Please sign in to comment.