mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-05-18 23:30:49 +02:00
travis: Fix tests
This commit is contained in:
parent
f4c14335f3
commit
a38115407c
@ -2,6 +2,7 @@
|
|||||||
import unittest
|
import unittest
|
||||||
import os
|
import os
|
||||||
import pathlib
|
import pathlib
|
||||||
|
import time
|
||||||
|
|
||||||
from pywal import util
|
from pywal import util
|
||||||
|
|
||||||
@ -85,6 +86,11 @@ class TestUtil(unittest.TestCase):
|
|||||||
"""> Test disown command."""
|
"""> Test disown command."""
|
||||||
test_file = pathlib.Path("/tmp/wal-test-disown")
|
test_file = pathlib.Path("/tmp/wal-test-disown")
|
||||||
util.disown("touch", test_file)
|
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()
|
result = test_file.is_file()
|
||||||
self.assertTrue(result)
|
self.assertTrue(result)
|
||||||
os.remove(test_file)
|
os.remove(test_file)
|
||||||
|
Loading…
Reference in New Issue
Block a user