Skip to content

Commit

Permalink
sqlite: increase timeout for flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Jul 16, 2024
1 parent cef5d2f commit 1eb029e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions persist/sqlite/peers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ func TestBanPeer(t *testing.T) {
}

// ban the peer
ps.Ban(peer, time.Second, "test")
ps.Ban(peer, 5*time.Second, "test")

if banned, err := ps.Banned(peer); err != nil || !banned {
t.Fatal("expected peer to be banned", err)
}

// wait for the ban to expire
time.Sleep(time.Second)
time.Sleep(5 * time.Second)

if banned, err := ps.Banned(peer); err != nil || banned {
t.Fatal("expected peer to not be banned", err)
Expand Down

0 comments on commit 1eb029e

Please sign in to comment.