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();