Add more delay for test code

This commit is contained in:
Sukchan Lee 2020-09-06 21:41:10 -04:00
parent 6bbc2047d0
commit b499b585d2
3 changed files with 12 additions and 2 deletions

View File

@ -57,6 +57,10 @@ int app_initialize(const char *const argv[])
ausf_thread = test_child_create("ausf", argv_out);
if (ogs_app()->parameter.no_upf == 0)
upf_thread = test_child_create("upf", argv_out);
/* Wait for PFCP association */
ogs_msleep(300);
if (ogs_app()->parameter.no_smf == 0)
smf_thread = test_child_create("smf", argv_out);
if (ogs_app()->parameter.no_amf == 0)

View File

@ -71,6 +71,9 @@ int app_initialize(const char *const argv[])
if (ogs_app()->parameter.no_sgwu == 0)
sgwu_thread = test_child_create("sgwu", argv_out);
/* Wait for PFCP association */
ogs_msleep(300);
if (ogs_app()->parameter.no_smf == 0)
smf_thread = test_child_create("smf", argv_out);
if (ogs_app()->parameter.no_sgwc == 0)
@ -85,7 +88,7 @@ int app_initialize(const char *const argv[])
*
* Note that at least 1 second is needed if freeDiameter is running.
*/
ogs_msleep(1200);
ogs_msleep(5000);
return OGS_OK;;
}

View File

@ -60,6 +60,9 @@ int app_initialize(const char *const argv[])
if (ogs_app()->parameter.no_sgwu == 0)
sgwu_thread = test_child_create("sgwu", argv_out);
/* Wait for PFCP association */
ogs_msleep(300);
if (ogs_app()->parameter.no_smf == 0)
smf_thread = test_child_create("smf", argv_out);
if (ogs_app()->parameter.no_sgwc == 0)
@ -72,7 +75,7 @@ int app_initialize(const char *const argv[])
*
* Note that at least 1 second is needed if freeDiameter is running.
*/
ogs_msleep(1200);
ogs_msleep(5000);
return OGS_OK;;
}