Skip to content

Commit 08cdb4d

Browse files
committed
Fix PeerPool tests.
1 parent 6eb3f97 commit 08cdb4d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_peer_pool.nim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ proc getKey*(peer: PeerTest): PeerTestID =
2525
proc getFuture*(peer: PeerTest): Future[void] =
2626
result = peer.future
2727

28+
proc isAlive*(peer: PeerTest): bool =
29+
not(peer.future.finished())
30+
2831
proc `<`*(a, b: PeerTest): bool =
2932
result = `<`(a.weight, b.weight)
3033

0 commit comments

Comments
 (0)