From cc4d63abca3c3c0dabe5ba5304a112688a4eb08a Mon Sep 17 00:00:00 2001 From: Siddharth Ravikumar Date: Wed, 4 Mar 2015 23:04:11 -0500 Subject: all the sleep calls are 1 sec long in tests.events_test --- tests/events_test.py | 10 +++++----- 1 file 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) -- cgit v1.2.3