Increase timeout in test_editor.

The test with watch=True was failing on the Travis OSX environment
becausee it was timing out before the file_updated signal was fired.
This commit is contained in:
Ryan Roden-Corrent 2018-02-04 07:02:25 -05:00
parent 833df95485
commit a8733d7228

View File

@ -184,7 +184,7 @@ def test_modify_watch(qtbot):
editor = editormod.ExternalEditor(watch=True) editor = editormod.ExternalEditor(watch=True)
editor.edit('foo') editor.edit('foo')
with qtbot.wait_signal(editor.file_updated) as blocker: with qtbot.wait_signal(editor.file_updated, timeout=3000) as blocker:
with open(editor._filename, 'w', encoding='utf-8') as f: with open(editor._filename, 'w', encoding='utf-8') as f:
f.write('bar') f.write('bar')
assert blocker.args == ['bar'] assert blocker.args == ['bar']