Speed up test_sync a little by removing sleeps.
Empirically watchdog.Observer.join takes ~1s which is plenty of time for
us to handle any events that were sent around the time we started it.
@@ -13,7 +13,6 @@ def test_watches_for_all_changes(mocker):
with open("some_file.txt", "w") as f:
f.write("My great changes")
t.join()
- time.sleep(0.5)
assert api.push.called
def test_watches_for_specific_change(mocker):
@@ -25,5 +24,4 @@ def test_watches_for_specific_change(mocker):
with open("file.txt", "a") as f:
f.write("great")
t.join()
- time.sleep(0.5)
assert api.push.called
\ No newline at end of file
