Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-forbes committed Mar 5, 2025
1 parent fbc516e commit e9fb33b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions consensus/propagation/commitment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ func TestPropose(t *testing.T) {
haves, has := reactor2.getPeer(reactor1.self).GetHaves(prop.Height, prop.Round)
assert.True(t, has)
// the parts == total because we only have 2 peers
assert.Equal(t, haves.Size(), int(partSet.Total()))
assert.Equal(t, haves.Size(), int(partSet.Total()*2))

haves, has = reactor3.getPeer(reactor1.self).GetHaves(prop.Height, prop.Round)
assert.True(t, has)
// the parts == total because we only have 2 peers
assert.Equal(t, haves.Size(), int(partSet.Total()))
assert.Equal(t, haves.Size(), int(partSet.Total()*2))
}
4 changes: 0 additions & 4 deletions consensus/propagation/have_wants.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package propagation

import (
"fmt"

proptypes "github.com/tendermint/tendermint/consensus/propagation/types"
"github.com/tendermint/tendermint/p2p"
"github.com/tendermint/tendermint/pkg/trace/schema"
Expand Down Expand Up @@ -348,9 +346,7 @@ func (blockProp *Reactor) handleRecoveryPart(peer p2p.ID, part *proptypes.Recove
// clear all the wants if they exist
go func(height int64, round int32, parts *proptypes.CombinedPartSet) {
for i := uint32(0); i < parts.Total(); i++ {
fmt.Println("getting part", i)
p, _ := parts.GetPart(i)
fmt.Println("got part", p != nil)
msg := &proptypes.RecoveryPart{
Height: height,
Round: round,
Expand Down

0 comments on commit e9fb33b

Please sign in to comment.