From 8d7a95a15508bc06feb4c9e8040d7fe73119b8b1 Mon Sep 17 00:00:00 2001 From: Norbert Podhorszki Date: Thu, 21 May 2020 13:55:51 -0400 Subject: [PATCH] Use DelayMS in TestCommonWriteLocal like as in TestCommonWrite. --- .../adios2/engine/staging-common/TestCommonWriteLocal.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/testing/adios2/engine/staging-common/TestCommonWriteLocal.cpp b/testing/adios2/engine/staging-common/TestCommonWriteLocal.cpp index 72881c5ec8..b253b2aa67 100644 --- a/testing/adios2/engine/staging-common/TestCommonWriteLocal.cpp +++ b/testing/adios2/engine/staging-common/TestCommonWriteLocal.cpp @@ -6,8 +6,10 @@ #include #include +#include #include #include +#include #include @@ -167,6 +169,8 @@ TEST_F(CommonWriteTest, ADIOS2CommonWrite) std::time_t localtime = std::time(NULL); engine.Put(var_time, (int64_t *)&localtime); engine.EndStep(); + std::this_thread::sleep_for(std::chrono::milliseconds( + DelayMS)); /* sleep for DelayMS milliseconds */ } // Close the file @@ -188,6 +192,8 @@ int main(int argc, char **argv) int result; ::testing::InitGoogleTest(&argc, argv); + DelayMS = 0; // zero for common writer + ParseArgs(argc, argv); result = RUN_ALL_TESTS();