Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
ws4charlie committed Sep 24, 2024
1 parent fe5731e commit 7340658
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/chains/chains_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ import (
func TestChain_Name(t *testing.T) {
t.Run("new Name field is compatible with ChainName enum", func(t *testing.T) {
for _, chain := range chains.DefaultChainsList() {
require.EqualValues(t, chain.Name, chain.ChainName.String())
if chain.ChainName != chains.ChainName_empty {
require.EqualValues(t, chain.Name, chain.ChainName.String())
}
}
})
}
Expand Down

0 comments on commit 7340658

Please sign in to comment.