Skip to content

Commit

Permalink
try to fix flickering test
Browse files Browse the repository at this point in the history
  • Loading branch information
bamthomas committed Apr 15, 2021
1 parent 945cba0 commit 5141973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aioimaplib/tests/test_imapserver_imaplib2.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async def test_idle(self):
self.loop.run_in_executor(None, functools.partial(self.imapserver.receive,
Mail.create(to=['user'], mail_from='me', subject='hello')))

await asyncio.wait_for(self.imapserver.get_connection('user').wait(imapserver.SELECTED), 1)
await asyncio.wait_for(self.imapserver.get_connection('user').wait(imapserver.SELECTED), 5)
time.sleep(0.1) # eurk hate sleeps but I don't know how to wait for the lib to receive end of IDLE
idle_callback.assert_called_once()

Expand Down

0 comments on commit 5141973

Please sign in to comment.