From 7340658706ae3615d8ff2f1f4d81d4737c10d3f2 Mon Sep 17 00:00:00 2001 From: Charlie Chen Date: Tue, 24 Sep 2024 16:10:14 -0500 Subject: [PATCH] fix unit test --- pkg/chains/chains_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/chains/chains_test.go b/pkg/chains/chains_test.go index ca23229c2a..90545bee1c 100644 --- a/pkg/chains/chains_test.go +++ b/pkg/chains/chains_test.go @@ -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()) + } } }) }