mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-20 19:49:06 +00:00
more robust
This commit is contained in:
parent
1e6381ca7f
commit
768829e993
@ -646,7 +646,8 @@ class OnStdinCloseTests(SyncTestCase):
|
||||
on_stdin_close(reactor, onclose)
|
||||
self.assertEqual(called, [])
|
||||
|
||||
reader = list(reactor.readers)[0]
|
||||
for reader in reactor.getReaders():
|
||||
reader.loseConnection()
|
||||
reader.loseConnection()
|
||||
reactor.advance(1) # ProcessReader does a callLater(0, ..)
|
||||
|
||||
@ -665,7 +666,8 @@ class OnStdinCloseTests(SyncTestCase):
|
||||
on_stdin_close(reactor, onclose)
|
||||
self.assertEqual(called, [])
|
||||
|
||||
reader = list(reactor.readers)[0]
|
||||
for reader in reactor.getReaders():
|
||||
reader.loseConnection()
|
||||
reader.loseConnection()
|
||||
reactor.advance(1) # ProcessReader does a callLater(0, ..)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user