File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 1717
1818import os
1919import sys
20- import threading
2120import time
2221import unittest
2322import warnings
@@ -799,7 +798,7 @@ async def test_1_2_callback_is_called_once_for_multiple_connections(self):
799798 client = await self .create_client ()
800799 await client .aconnect ()
801800
802- # Start 10 threads and run 100 find operations in each thread that all succeed.
801+ # Start 10 tasks and run 100 find operations that all succeed in each task .
803802 async def target ():
804803 for _ in range (100 ):
805804 await client .test .test .find_one ()
Original file line number Diff line number Diff line change 1717
1818import os
1919import sys
20- import threading
2120import time
2221import unittest
2322import warnings
@@ -797,7 +796,7 @@ def test_1_2_callback_is_called_once_for_multiple_connections(self):
797796 client = self .create_client ()
798797 client ._connect ()
799798
800- # Start 10 threads and run 100 find operations in each thread that all succeed.
799+ # Start 10 tasks and run 100 find operations that all succeed in each task .
801800 def target ():
802801 for _ in range (100 ):
803802 client .test .test .find_one ()
You can’t perform that action at this time.
0 commit comments