Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Commit

Permalink
test: make the "add" test less timing dependent
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Jul 21, 2021
1 parent 7afb11e commit 59822c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/addr_book_suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ func testAddAddress(ab pstore.AddrBook) func(*testing.T) {

ab.AddAddrs(id, addrs, 4*time.Second)
// 4 seconds left
time.Sleep(3 * time.Second)
// 1 second left
time.Sleep(2 * time.Second)
// 2 second left
ab.AddAddrs(id, addrs, 3*time.Second)
// 3 seconds left
time.Sleep(1 * time.Second)
Expand Down

0 comments on commit 59822c4

Please sign in to comment.