From a38115407c05366c95b9008c97c8e3c276fa2562 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 23 Jul 2017 20:20:02 +1000 Subject: [PATCH] travis: Fix tests --- tests/test_util.py | 6 ++++++ 1 file changed, 6 insertions(+) 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)