This is an automated email from the ASF dual-hosted git repository.

jensg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git


The following commit(s) were added to refs/heads/master by this push:
     new 6701dbb  THRIFT-4976: Delay 1 second before recompiling Patch: Qinghui 
Xu
6701dbb is described below

commit 6701dbb8e89f6550c7843e9b75b118998df471c3
Author: Qinghui Xu <[email protected]>
AuthorDate: Sun Oct 13 22:19:42 2019 +0200

    THRIFT-4976: Delay 1 second before recompiling
    Patch: Qinghui Xu
    
    This closes #1898
    
    In some environment, the file system only has second accuracy on
    file modification timestamp, so delay of 0.1 second before
    recompiling could makes the modification timestamp unchanged.
---
 compiler/cpp/test/compiler/staleness_check.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/compiler/cpp/test/compiler/staleness_check.py 
b/compiler/cpp/test/compiler/staleness_check.py
index 5b11dff..6b67798 100755
--- a/compiler/cpp/test/compiler/staleness_check.py
+++ b/compiler/cpp/test/compiler/staleness_check.py
@@ -46,7 +46,7 @@ class TestStalenessCheck(unittest.TestCase):
 
         first_modification_time = 
os.path.getmtime(os.path.join(used_file_path))
 
-        time.sleep(0.1)
+        time.sleep(1.0)
 
         subprocess.call(command)
 
@@ -74,7 +74,7 @@ class TestStalenessCheck(unittest.TestCase):
         used_file.write("\n/* This is a comment */\n")
         used_file.close()
 
-        time.sleep(0.1)
+        time.sleep(1.0)
 
         subprocess.call(command)
 
@@ -112,7 +112,7 @@ class TestStalenessCheck(unittest.TestCase):
         temp_included_file.write("\nconst i32 an_integer = 42\n")
         temp_included_file.close()
 
-        time.sleep(0.1)
+        time.sleep(1.0)
 
         subprocess.call(command)
 

Reply via email to