From 633f2eadfa84dcb7e74cff3f25616fce36c1fece Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Wed, 25 Aug 2021 15:52:36 -0400 Subject: [PATCH] tests: close coverage gap for race condition Closes #260 --- tests/unit/test_bidi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test_bidi.py b/tests/unit/test_bidi.py index b876d9ad..15994ee0 100644 --- a/tests/unit/test_bidi.py +++ b/tests/unit/test_bidi.py @@ -836,7 +836,7 @@ def test_consumer_unexpected_error(self, caplog): # Wait for the consumer's thread to exit. while consumer.is_active: - pass + pass # pragma: NO COVER (race condition) on_response.assert_not_called() bidi_rpc.recv.assert_called_once()