Skip to content

Commit

Permalink
fix: remove circular dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ZwangaMukwevho committed Jan 15, 2025
1 parent 7cf298a commit 79a4e47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/benchmarks/benchmark_msg_send_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ func calculateBlockSizeInMb(txs [][]byte) float64 {
for _, tx := range txs {
numberOfBytes += len(tx)
}
mb := float64(numberOfBytes) / app.Mebibyte
mb := float64(numberOfBytes) / Mebibyte
return mb
}

Expand Down
7 changes: 3 additions & 4 deletions app/default_overrides_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"testing"
"time"

"github.com/celestiaorg/celestia-app/v3/app"
"github.com/celestiaorg/celestia-app/v3/app/encoding"
"github.com/cosmos/cosmos-sdk/types"
distributiontypes "github.com/cosmos/cosmos-sdk/x/distribution/types"
Expand Down Expand Up @@ -66,7 +65,7 @@ func TestDefaultAppConfig(t *testing.T) {
assert.Equal(t, uint32(2), cfg.StateSync.SnapshotKeepRecent)
assert.Equal(t, "0.002utia", cfg.MinGasPrices)

assert.Equal(t, 20*app.Mebibyte, cfg.GRPC.MaxRecvMsgSize)
assert.Equal(t, 20*Mebibyte, cfg.GRPC.MaxRecvMsgSize)
}

func TestDefaultConsensusConfig(t *testing.T) {
Expand All @@ -93,8 +92,8 @@ func TestDefaultConsensusConfig(t *testing.T) {
assert.Equal(t, want, *got.Mempool)
})
t.Run("p2p overrides", func(t *testing.T) {
assert.Equal(t, int64(10*app.Mebibyte), got.P2P.SendRate)
assert.Equal(t, int64(10*app.Mebibyte), got.P2P.RecvRate)
assert.Equal(t, int64(10*Mebibyte), got.P2P.SendRate)
assert.Equal(t, int64(10*Mebibyte), got.P2P.RecvRate)
})
}

Expand Down

0 comments on commit 79a4e47

Please sign in to comment.