travis: Fix tests

This commit is contained in:
Dylan Araps 2017-07-23 20:20:02 +10:00
parent f4c14335f3
commit a38115407c

View file

@ -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)