Skip to content

Commit

Permalink
Update config get unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zivkovicmilos committed Nov 17, 2024
1 parent 372e37d commit a28c814
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gno.land/cmd/gnoland/config_get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -612,15 +612,15 @@ func TestConfig_Get_P2P(t *testing.T) {
"max inbound peers",
"p2p.max_num_inbound_peers",
func(loadedCfg *config.Config, value []byte) {
assert.Equal(t, loadedCfg.P2P.MaxNumInboundPeers, unmarshalJSONCommon[int](t, value))
assert.Equal(t, loadedCfg.P2P.MaxNumInboundPeers, unmarshalJSONCommon[uint64](t, value))
},
false,
},
{
"max outbound peers",
"p2p.max_num_outbound_peers",
func(loadedCfg *config.Config, value []byte) {
assert.Equal(t, loadedCfg.P2P.MaxNumOutboundPeers, unmarshalJSONCommon[int](t, value))
assert.Equal(t, loadedCfg.P2P.MaxNumOutboundPeers, unmarshalJSONCommon[uint64](t, value))
},
false,
},
Expand Down

0 comments on commit a28c814

Please sign in to comment.