Преглед на файлове

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

Signed-off-by: Jayanth Velusamy <jayanth.v@kalycito.com>
Jayanth Velusamy преди 5 години
родител
ревизия
53deb3585f
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  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;