Skip to content

Commit 2e93c9a

Browse files
linuxmaniacgoodboy
authored andcommitted
trio: fix test_server(), add new returncode for timeout
1 parent 8146211 commit 2e93c9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def test_server():
118118
# test client failure on bad remote destination
119119
(agent.client(destaddr=("99.99.99.99", 5060)), 1, {}, RuntimeError),
120120
# test if server times out it is signalled
121-
(agent.server(), 0, {"timeout": 1}, launch.TimeoutError),
121+
(agent.server(), -9, {"timeout": 1}, launch.TimeoutError),
122122
],
123123
ids=["ua", "uac", "uas"],
124124
)

0 commit comments

Comments
 (0)