File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 IntegrationTest ,
2323 unittest )
2424from test .utils import rs_or_single_client_noauth , rs_or_single_client
25- from test .utils import frequent_thread_switches , joinall
25+ from test .utils import joinall
2626from pymongo .errors import OperationFailure
2727
2828
@@ -193,15 +193,14 @@ def test_client_disconnect(self):
193193 threads = [SaveAndFind (db .test ) for _ in range (10 )]
194194 threads .extend (Disconnect (db .client , 10 ) for _ in range (10 ))
195195
196- with frequent_thread_switches ():
197- for t in threads :
198- t .start ()
196+ for t in threads :
197+ t .start ()
199198
200- for t in threads :
201- t .join (300 )
199+ for t in threads :
200+ t .join (300 )
202201
203- for t in threads :
204- self .assertTrue (t .passed )
202+ for t in threads :
203+ self .assertTrue (t .passed )
205204
206205
207206class TestThreadsAuth (IntegrationTest ):
You can’t perform that action at this time.
0 commit comments