Skip to content

Commit

Permalink
Increase sleep time for filewatching on OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobGM committed May 2, 2018
1 parent 3508b8f commit 510e80d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions astrality/tests/test_filewatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ def watch_dir(tmpdir):
"""Instanciate a directory watcher and stop it after its use."""
watched_directory = Path(tmpdir)
test_file1 = watched_directory / 'tmp_test_file1'

recursive_dir = watched_directory / 'test_folder'
test_file2 = recursive_dir / 'tmp_test_file2'

Expand Down Expand Up @@ -109,6 +108,6 @@ def test_filesystem_watcher(watch_dir):
test_file2.write_text('test')

# Both the touch event and the write event are considered of interest
time.sleep(0.7)
time.sleep(2)
assert event_saver.argument == test_file2
assert event_saver.called >= 2

0 comments on commit 510e80d

Please sign in to comment.