mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-05-18 15:20:51 +02:00
travis: Fix tests
This commit is contained in:
parent
f4c14335f3
commit
a38115407c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user