File tree 1 file changed +4
-11
lines changed 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -3309,19 +3309,12 @@ def run(addr, authkey):
3309
3309
client = self .connection .Client (addr , authkey = authkey )
3310
3310
client .send (1729 )
3311
3311
3312
- timeout_in_s = 2
3313
3312
key = b""
3314
3313
3315
- try :
3316
- # wait 2s so the test won't hang forever in case of regression
3317
- signal .signal (signal .SIGALRM , handler )
3318
- signal .alarm (timeout_in_s )
3319
- with self .connection .Listener (authkey = key ) as listener :
3320
- threading .Thread (target = run , args = (listener .address , key )).start ()
3321
- with listener .accept () as d :
3322
- self .assertEqual (d .recv (), 1729 )
3323
- finally :
3324
- signal .alarm (0 )
3314
+ with self .connection .Listener (authkey = key ) as listener :
3315
+ threading .Thread (target = run , args = (listener .address , key )).start ()
3316
+ with listener .accept () as d :
3317
+ self .assertEqual (d .recv (), 1729 )
3325
3318
3326
3319
if self .TYPE == 'processes' :
3327
3320
self .assertRaises (OSError , listener .accept )
You can’t perform that action at this time.
0 commit comments