summaryrefslogtreecommitdiffstats
path: root/tests/events_test.py
diff options
context:
space:
mode:
authorSiddharth Ravikumar <sravik@bgsu.edu>2015-03-04 23:04:11 -0500
committerSiddharth Ravikumar <sravik@bgsu.edu>2015-03-04 23:04:11 -0500
commitcc4d63abca3c3c0dabe5ba5304a112688a4eb08a (patch)
tree7e89feb9dd82a6c94eb29b34b69be64948495954 /tests/events_test.py
parent833577f45c9ae7062334b633eaeb3a8ca1ff3fdd (diff)
all the sleep calls are 1 sec long in tests.events_test
Diffstat (limited to 'tests/events_test.py')
-rw-r--r--tests/events_test.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/events_test.py b/tests/events_test.py
index 6ba768b..bdb1c1a 100644
--- a/tests/events_test.py
+++ b/tests/events_test.py
@@ -97,13 +97,13 @@ class TestEvents(object):
# Test - directory creation
self.TEST_DIR_0 = path.join(self.FILES_DIR, 'foo')
os.mkdir(self.TEST_DIR_0)
- time.sleep(2)
+ time.sleep(1)
## check if TEST_DIR_0 is created under node directories.
dirp(self.TEST_DIR_0)
self.TEST_DIR_1 = path.join(self.TEST_DIR_0, 'bar')
os.mkdir(self.TEST_DIR_1)
- time.sleep(2)
+ time.sleep(1)
## check if TEST_DIR_1 is created under node directories.
dirp(self.TEST_DIR_1)
@@ -133,7 +133,7 @@ class TestEvents(object):
purge_dir(self.TEST_DIR_0)
# remove the directory itself.
os.rmdir(self.TEST_DIR_0)
- time.sleep(2)
+ time.sleep(1)
path_deletedp(self.TEST_FILE_COPY_1_NEW)
path_deletedp(self.TEST_DIR_1, True)
path_deletedp(self.TEST_DIR_0, True)
@@ -253,13 +253,13 @@ class TestEvents(object):
# Test - directory creation
self.FOO_DIR = path.join(self.FILES_DIR, 'foo')
mk_nodedir(self.FOO_DIR, self.config)
- time.sleep(2)
+ time.sleep(1)
## check if FOO_DIR is created under the combox directory
assert path.isdir(self.FOO_DIR)
self.BAR_DIR = path.join(self.FOO_DIR, 'bar')
mk_nodedir(self.BAR_DIR, self.config)
- time.sleep(2)
+ time.sleep(1)
## check if BAR_DIR is created under the combox directory.
assert path.isdir(self.BAR_DIR)