forked from sociomantic-tsunami/dhtproto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add env methods to wait for a specified number of listeners on a channel
Fixes sociomantic-tsunami#180.
- Loading branch information
1 parent
a65ee5e
commit 00c85b4
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
### New method to wait until a certain number of listeners are registered | ||
|
||
`turtle.env.Dht` | ||
|
||
App test suites typically need to wait for mirror/listen requests to start | ||
before running any tests. To support this, the new method `Dht.expectListeners` | ||
provides a means for waiting until a specified number of listeners are | ||
registered with a specified list of channels. This allows app test suites to | ||
implement test cases which would validate the mirror setup. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters