tests/logsv/tet_LogOiOps.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
The test case was created to verify if all log streams' directories are created successfully when changing `logRootDirectory`. There are mainly 03 steps: 1) Change `logRootDirectory` 2) Wait 100ms 3) Verify if the log stream's directory is created If step #1 takes more than 100ms, the verificaiton step will fail. This patch increase the time at step #2 to 1 second to make sure the step #1 done. diff --git a/tests/logsv/tet_LogOiOps.c b/tests/logsv/tet_LogOiOps.c --- a/tests/logsv/tet_LogOiOps.c +++ b/tests/logsv/tet_LogOiOps.c @@ -1076,7 +1076,7 @@ void change_root_path(void) } // Verify if the directory and subdirectly are created successfully - usleep(100*1000); // to make sure logsv done processing of directories creation + sleep(1); // to make sure logsv done processing of directories creation sprintf(command, "ls %s/testRoot 1>/dev/null", tstdir); rc = tet_system(command); if (rc != 0) { ------------------------------------------------------------------------------ _______________________________________________ Opensaf-devel mailing list Opensaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensaf-devel