From a053f4a58ebe7eb23cc2ac9b6a71f61f25b6b694 Mon Sep 17 00:00:00 2001 From: Julius Pfrommer Date: Mon, 11 Sep 2023 17:09:30 +0200 Subject: [PATCH] fix client test with unit test el clock --- tests/client/check_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/client/check_client.c b/tests/client/check_client.c index e156d5f0daa..0c589fccaa2 100644 --- a/tests/client/check_client.c +++ b/tests/client/check_client.c @@ -89,6 +89,7 @@ START_TEST(ClientConfig_Copy){ UA_ClientConfig srcConfig; memset(&srcConfig, 0, sizeof(UA_ClientConfig)); UA_ClientConfig_setDefault(&srcConfig); + srcConfig.eventLoop->dateTime_nowMonotonic = UA_DateTime_nowMonotonic_fake; UA_StatusCode retval = UA_ClientConfig_copy(&srcConfig, &dstConfig); ck_assert_uint_eq(retval, UA_STATUSCODE_GOOD); @@ -104,7 +105,6 @@ END_TEST START_TEST(Client_connect) { UA_Client *client = UA_Client_newForUnitTest(); - UA_ClientConfig_setDefault(UA_Client_getConfig(client)); UA_StatusCode retval = UA_Client_connect(client, "opc.tcp://localhost:4840"); ck_assert_uint_eq(retval, UA_STATUSCODE_GOOD);