Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
  • Loading branch information
gfanton committed Jan 11, 2024
1 parent 455e24f commit dc64728
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 3 additions & 4 deletions tm2/pkg/bft/consensus/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -815,13 +815,13 @@ func newPersistentKVStoreWithPath(dbDir string) abci.Application {
// ------------------------------------

func ensureDrainedChannels(t *testing.T, channels ...any) {
t.Helper()

r := recover()
if r == nil {
return
}

t.Helper()

t.Logf("checking for drained channel")
leaks := make(map[string]int)
for _, ch := range channels {
Expand All @@ -848,8 +848,7 @@ func ensureDrainedChannels(t *testing.T, channels ...any) {
}

for leak, count := range leaks {
fmt.Printf("channel %q: %d events left\n", leak, count)
// assert.Fail(t, "event leak", "channel %q: %d events left", leak, count)
t.Logf("channel %q: %d events left\n", leak, count)
}

panic(r)
Expand Down
2 changes: 0 additions & 2 deletions tm2/pkg/bft/consensus/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ func TestStateEnterProposeNoPrivValidator(t *testing.T) {
if ensureGetRoundState(cs).Proposal != nil {
t.Error("Expected to make no proposal, since no privValidator")
}

}

// a validator should not timeout of the prevote round (TODO: unless the block is really big!)
Expand Down Expand Up @@ -309,7 +308,6 @@ func TestStateFullRound1(t *testing.T) {
ensureNewRound(newRoundCh, height+1, 0)

validateLastPrecommit(cs, vss[0], propBlockHash)

}

// nil is proposed, so prevote and precommit nil
Expand Down

0 comments on commit dc64728

Please sign in to comment.