Skip to content

Commit 2bb7578

Browse files
committed
test: Fix more cancellation tests
Signed-off-by: Graham King <[email protected]>
1 parent 21fe932 commit 2bb7578

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/bindings/python/tests/cancellation/test_cancellation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ async def test_server_context_cancel(server, client):
256256
except ValueError as e:
257257
# Verify the expected cancellation exception is received
258258
# TODO: Should this be a asyncio.CancelledError?
259-
assert str(e) == "Stream ended before generation completed"
259+
assert str(e).startswith("Stream ended before generation completed")
260260

261261
# Verify server context cancellation status
262262
assert handler.context_is_stopped

lib/bindings/python/tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,6 @@ async def test_my_test(runtime):
436436
)
437437

438438
loop = asyncio.get_running_loop()
439-
runtime = DistributedRuntime(loop, "etcd", False)
439+
runtime = DistributedRuntime(loop, "mem", True)
440440
yield runtime
441441
runtime.shutdown()

0 commit comments

Comments
 (0)