Procházet zdrojové kódy

try fix SecureChannel_timeout_fail

StalderT před 7 roky
rodič
revize
23cc7ff34d
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      tests/client/check_client_securechannel.c

+ 1 - 0
tests/client/check_client_securechannel.c

@@ -76,6 +76,7 @@ START_TEST(SecureChannel_timeout_fail) {
     ck_assert_uint_eq(retval, UA_STATUSCODE_GOOD);
 
     UA_fakeSleep(UA_ClientConfig_default.secureChannelLifeTime+1);
+    UA_realSleep(50 + 1); // UA_MAXTIMEOUT+1 wait to be sure UA_Server_run_iterate can be completely executed 
 
     UA_Variant val;
     UA_Variant_init(&val);