-
-
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.
Finish testing JSON message connection
- Loading branch information
Vaughn Kottler
authored and
Vaughn Kottler
committed
Sep 1, 2023
1 parent
40de81a
commit 1298b83
Showing
3 changed files
with
117 additions
and
15 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
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
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,20 @@ | ||
""" | ||
Test the 'net.stream' module. | ||
""" | ||
|
||
# built-in | ||
import asyncio | ||
|
||
# third-party | ||
from pytest import mark | ||
|
||
# module under test | ||
from runtimepy.net.stream.json import event_wait | ||
|
||
|
||
@mark.asyncio | ||
async def test_event_wait_basic(): | ||
"""Test the event wait can time out.""" | ||
|
||
event = asyncio.Event() | ||
assert not await event_wait(event, 0.0) |