Sleep 1s after change logRootDirectory not enough time to logsv processing
of directories creation. So cannot access '/srv/shared/saflog/croot/testRoot'
The fix is increase sleep time to 2s to make sure all directory are
created successfully.
---
src/log/apitest/tet_LogOiOps.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/log/apitest/tet_LogOiOps.c b/src/log/apitest/tet_LogOiOps.c
index aae0d5c57..2fde9b5d4 100644
--- a/src/log/apitest/tet_LogOiOps.c
+++ b/src/log/apitest/tet_LogOiOps.c
@@ -1729,7 +1729,7 @@ void change_root_path(void)
}
// Verify if the directory and subdirectly are created successfully
- sleep(1); // to make sure logsv done processing of directories creation
+ sleep(2); // to make sure logsv done processing of directories creation
sprintf(command, "ls %s/testRoot 1>/dev/null", tstdir);
rc = systemCall(command);
if (rc != 0) {
--
2.17.1
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel