Skip to content

Commit d2d7f17

Browse files
committed
Fix synchro
1 parent 15c4a17 commit d2d7f17

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

test/test_streaming_protocol.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
sys.path[0:0] = [""]
2222

23-
from test.synchronous import IntegrationTest, client_context, unittest
23+
from test import IntegrationTest, client_context, unittest
2424
from test.utils import (
2525
HeartbeatEventListener,
2626
ServerEventListener,
@@ -30,7 +30,7 @@
3030
from pymongo import monitoring
3131
from pymongo.hello import HelloCompat
3232

33-
_IS_SYNC = False
33+
_IS_SYNC = True
3434

3535

3636
class TestStreamingProtocol(IntegrationTest):
@@ -79,7 +79,7 @@ def marked_unknown():
7979
def rediscovered():
8080
return len(listener.matching(_discovered_node)) >= 1
8181

82-
# Topology events are published asynchronously
82+
# Topology events are published synchronously
8383
wait_until(marked_unknown, "mark node unknown")
8484
wait_until(rediscovered, "rediscover node")
8585

tools/synchro.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ def async_only_test(f: str) -> bool:
226226
"test_retryable_writes.py",
227227
"test_retryable_writes_unified.py",
228228
"test_session.py",
229+
"test_streaming_protocol.py",
229230
"test_transactions.py",
230231
"unified_format.py",
231232
]

0 commit comments

Comments
 (0)