summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-07-23 20:20:02 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-07-23 20:20:02 +1000
commita38115407c05366c95b9008c97c8e3c276fa2562 (patch)
treea8a8c705d1c13bd5384cafcfe3ea84594f1643bc /tests
parentf4c14335f35321d0475408460f2919a4d9cbfa23 (diff)
travis: Fix tests
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_util.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_util.py b/tests/test_util.py
index 66a6b7e..01d1c9c 100755
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -2,6 +2,7 @@
import unittest
import os
import pathlib
+import time
from pywal import util
@@ -85,6 +86,11 @@ class TestUtil(unittest.TestCase):
"""> Test disown command."""
test_file = pathlib.Path("/tmp/wal-test-disown")
util.disown("touch", test_file)
+
+ # We won't know when 'disown' will finish so we
+ # sleep here.
+ time.sleep(10)
+
result = test_file.is_file()
self.assertTrue(result)
os.remove(test_file)