Skip to content

Commit

Permalink
test: add sleep for test_sync
Browse files Browse the repository at this point in the history
  • Loading branch information
kraanzu committed Nov 6, 2024
1 parent cbfdc2b commit 66ba4f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_core/test_sync.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from time import sleep
from pathlib import Path
from dooit.api.manager import Manager
from dooit.api.workspace import Workspace
Expand All @@ -22,6 +23,7 @@ def test_sync(self):
manager1.save(w)

self.assertFalse(manager1.has_changed())
self.assertTrue(manager2.has_changed())
sleep(1) # ensuring the times dont match

self.assertTrue(manager2.has_changed())
temp_folder.cleanup()

0 comments on commit 66ba4f3

Please sign in to comment.