File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4630,16 +4630,13 @@ def test_thread_recv_while_main_thread_sends(self):
46304630 # that the recv() call held.
46314631 data = b"1" * 50
46324632 event = threading .Event ()
4633- event2 = threading .Event ()
46344633 def background (sock ):
46354634 event .set ()
4636- event2 .wait ()
46374635 received = sock .recv (50 )
46384636 self .assertEqual (received , data )
46394637
46404638 client_context , server_context , hostname = testing_context ()
4641- server = ThreadedEchoServer (context = server_context ,
4642- chatty = False , connectionchatty = False )
4639+ server = ThreadedEchoServer (context = server_context )
46434640 with server :
46444641 with client_context .wrap_socket (socket .socket (),
46454642 server_hostname = hostname ) as sock :
@@ -4651,7 +4648,6 @@ def background(sock):
46514648 thread .start ()
46524649 # Use two events to prevent some race conditions here.
46534650 event .wait ()
4654- event2 .set ()
46554651 sock .sendall (b"1" * 50 )
46564652 thread .join ()
46574653 if cm .exc_value is not None :
You can’t perform that action at this time.
0 commit comments