Aurora and Fantom handled wrong in a couple cases in guardian (#1044)
* Aurora and Fantom handled wrong in a couple cases Change-Id: I09b7d2da46507e219bd99d945256e63fefad529c * Original test covered upper / lower case Change-Id: I0384b0aac6f63bf9782d393fcd4e4e67f353775a
This commit is contained in:
parent
014b3686fe
commit
eb898b0555
|
@ -624,8 +624,9 @@ func runNode(cmd *cobra.Command, args []string) {
|
|||
chainObsvReqC[vaa.ChainIDPolygon] = make(chan *gossipv1.ObservationRequest)
|
||||
chainObsvReqC[vaa.ChainIDAvalanche] = make(chan *gossipv1.ObservationRequest)
|
||||
chainObsvReqC[vaa.ChainIDOasis] = make(chan *gossipv1.ObservationRequest)
|
||||
chainObsvReqC[vaa.ChainIDFantom] = make(chan *gossipv1.ObservationRequest)
|
||||
if *testnetMode {
|
||||
chainObsvReqC[vaa.ChainIDFantom] = make(chan *gossipv1.ObservationRequest)
|
||||
chainObsvReqC[vaa.ChainIDAurora] = make(chan *gossipv1.ObservationRequest)
|
||||
chainObsvReqC[vaa.ChainIDKarura] = make(chan *gossipv1.ObservationRequest)
|
||||
chainObsvReqC[vaa.ChainIDAcala] = make(chan *gossipv1.ObservationRequest)
|
||||
chainObsvReqC[vaa.ChainIDEthereumRopsten] = make(chan *gossipv1.ObservationRequest)
|
||||
|
|
|
@ -48,9 +48,13 @@ func TestChainIDFromString(t *testing.T) {
|
|||
{input: "polygon", output: ChainIDPolygon},
|
||||
{input: "avalanche", output: ChainIDAvalanche},
|
||||
{input: "oasis", output: ChainIDOasis},
|
||||
{input: "fantom", output: ChainIDFantom},
|
||||
{input: "algorand", output: ChainIDAlgorand},
|
||||
{input: "aurora", output: ChainIDAurora},
|
||||
{input: "fantom", output: ChainIDFantom},
|
||||
{input: "karura", output: ChainIDKarura},
|
||||
{input: "acala", output: ChainIDAcala},
|
||||
{input: "ethereum-ropsten", output: ChainIDEthereumRopsten},
|
||||
|
||||
{input: "Solana", output: ChainIDSolana},
|
||||
{input: "Ethereum", output: ChainIDEthereum},
|
||||
{input: "Terra", output: ChainIDTerra},
|
||||
|
@ -58,10 +62,12 @@ func TestChainIDFromString(t *testing.T) {
|
|||
{input: "Polygon", output: ChainIDPolygon},
|
||||
{input: "Avalanche", output: ChainIDAvalanche},
|
||||
{input: "Oasis", output: ChainIDOasis},
|
||||
{input: "Fantom", output: ChainIDFantom},
|
||||
{input: "Algorand", output: ChainIDAlgorand},
|
||||
{input: "Aurora", output: ChainIDAurora},
|
||||
{input: "Fantom", output: ChainIDFantom},
|
||||
{input: "Karura", output: ChainIDKarura},
|
||||
{input: "Acala", output: ChainIDAcala},
|
||||
{input: "Ethereum-ropsten", output: ChainIDEthereumRopsten},
|
||||
}
|
||||
|
||||
// Negative Test Cases
|
||||
|
@ -136,11 +142,12 @@ func TestChainId_String(t *testing.T) {
|
|||
{input: 5, output: "polygon"},
|
||||
{input: 6, output: "avalanche"},
|
||||
{input: 7, output: "oasis"},
|
||||
{input: 10, output: "fantom"},
|
||||
{input: 8, output: "algorand"},
|
||||
{input: 10001, output: "ethereum-ropsten"},
|
||||
{input: 9, output: "aurora"},
|
||||
{input: 10, output: "fantom"},
|
||||
{input: 11, output: "karura"},
|
||||
{input: 12, output: "acala"},
|
||||
{input: 10001, output: "ethereum-ropsten"},
|
||||
}
|
||||
|
||||
for _, tc := range tests {
|
||||
|
|
Loading…
Reference in New Issue