瀏覽代碼

try fix SecureChannel_timeout_fail

StalderT 7 年之前
父節點
當前提交
23cc7ff34d
共有 1 個文件被更改,包括 1 次插入0 次删除
  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);