Skip to content

Commit

Permalink
skip legacy testnet chain selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
winder committed May 20, 2024
1 parent 4b3ebbf commit e191d70
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion selectors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,18 @@ func Test_MainnetAndTestnetAreSynchronized(t *testing.T) {
}
}

// Skip legacy testnet only chains
delete(chainMap, "bitcoin")
delete(chainMap, "geth")
delete(chainMap, "hedera")
delete(chainMap, "berachain")
delete(chainMap, "cronos")
delete(chainMap, "fantom")

// analyze results
for chain, details := range chainMap {
if len(details.mainnet) == 0 && len(details.testnet) != 0 {
assert.Fail(t, "Chain %s has testnet chains but no mainnet chains", chain)
assert.Fail(t, "Chain %s has testnet chains but no mainnet chains. If this is intentional add an exception to this test with a comment explaining why.", chain)
}
}
}

0 comments on commit e191d70

Please sign in to comment.