From 4c5c058c4e36544c0644cf08fba18b0f28f27c31 Mon Sep 17 00:00:00 2001 From: Rootul P Date: Mon, 13 Jan 2025 19:57:14 -0700 Subject: [PATCH] test: default override rates (#4215) Part of https://github.com/celestiaorg/celestia-app/issues/4213 The real fix is in https://github.com/celestiaorg/cosmos-sdk/pull/425 but this is a nice to have. --- app/default_overrides_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/default_overrides_test.go b/app/default_overrides_test.go index c78195717a..8e27d0b5a7 100644 --- a/app/default_overrides_test.go +++ b/app/default_overrides_test.go @@ -89,6 +89,11 @@ func TestDefaultConsensusConfig(t *testing.T) { } assert.Equal(t, want, *got.Mempool) }) + t.Run("p2p overrides", func(t *testing.T) { + const mebibyte = 1048576 + assert.Equal(t, int64(10*mebibyte), got.P2P.SendRate) + assert.Equal(t, int64(10*mebibyte), got.P2P.RecvRate) + }) } func Test_icaDefaultGenesis(t *testing.T) {