Parcourir la source

[FIX] Add non-zero timestamp for unit tests (client)

Signed-off-by: Jayanth Velusamy <jayanth.v@kalycito.com>
Jayanth Velusamy il y a 5 ans
Parent
commit
53deb3585f
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      tests/testing-plugins/testing_clock.c

+ 3 - 1
tests/testing-plugins/testing_clock.c

@@ -5,7 +5,9 @@
 #include "testing_clock.h"
 #include <time.h>
 
-UA_DateTime testingClock = 0;
+/* To avoid zero timestamp value in header, the testingClock
+ * is assigned with non-zero timestamp to pass unit tests */
+UA_DateTime testingClock = 0x5C8F735D;
 
 UA_DateTime UA_DateTime_now(void) {
     return testingClock;