SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
24
misc/open62541/patches/patch-tests_client_check_client_c
Normal file
24
misc/open62541/patches/patch-tests_client_check_client_c
Normal file
|
@ -0,0 +1,24 @@
|
|||
fix(tests): network is not instant
|
||||
https://github.com/open62541/open62541/commit/d40ce0724b82a22228b7e5c32b4bb401cb8e7a1c
|
||||
|
||||
Index: tests/client/check_client.c
|
||||
--- tests/client/check_client.c.orig
|
||||
+++ tests/client/check_client.c
|
||||
@@ -180,7 +180,7 @@ START_TEST(Client_renewSecureChannel) {
|
||||
UA_fakeSleep((UA_UInt32)((UA_Double)cc->secureChannelLifeTime * 0.8));
|
||||
|
||||
/* Make the client renew the channel */
|
||||
- retval = UA_Client_run_iterate(client, 0);
|
||||
+ retval = UA_Client_run_iterate(client, 1);
|
||||
ck_assert_uint_eq(retval, UA_STATUSCODE_GOOD);
|
||||
|
||||
/* Now read */
|
||||
@@ -224,7 +224,7 @@ START_TEST(Client_renewSecureChannelWithActiveSubscrip
|
||||
for(int i = 0; i < 15; ++i) {
|
||||
UA_fakeSleep(1000);
|
||||
UA_Server_run_iterate(server, true);
|
||||
- retval = UA_Client_run_iterate(client, 0);
|
||||
+ retval = UA_Client_run_iterate(client, 1);
|
||||
ck_assert_uint_eq(retval, UA_STATUSCODE_GOOD);
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue