From dca4f2c769e76939947c2303416c0dfd8521cd96 Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Thu, 16 May 2024 12:02:03 +0200 Subject: [PATCH] fix tests --- test/unit/ngsiv2/HTTP_reveice_measures-test2.js | 3 ++- .../contextRequests/multipleMeasuresJsonTypes3.json | 4 ++-- .../contextRequests/timeInstantMultipleMeasures.json | 2 +- .../timeInstantMultipleMeasures1b.json | 12 ++++++------ 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/test/unit/ngsiv2/HTTP_reveice_measures-test2.js b/test/unit/ngsiv2/HTTP_reveice_measures-test2.js index 38a923a37..01b939006 100755 --- a/test/unit/ngsiv2/HTTP_reveice_measures-test2.js +++ b/test/unit/ngsiv2/HTTP_reveice_measures-test2.js @@ -389,7 +389,8 @@ describe('HTTP: Measure reception ', function () { TimeInstant: '2023-03-23T23:33:33Z' }, { - h: '111111' + h: '111111', + TimeInstant: '2024-03-23T23:33:33Z' } ], headers: { diff --git a/test/unit/ngsiv2/contextRequests/multipleMeasuresJsonTypes3.json b/test/unit/ngsiv2/contextRequests/multipleMeasuresJsonTypes3.json index 135f5912a..f54aa29d1 100644 --- a/test/unit/ngsiv2/contextRequests/multipleMeasuresJsonTypes3.json +++ b/test/unit/ngsiv2/contextRequests/multipleMeasuresJsonTypes3.json @@ -46,11 +46,11 @@ "type": "AnMQTTDevice", "temperature": { "type": "celsius", - "value": "89" + "value": "87" }, "humidity": { "type": "degrees", - "value": "33" + "value": "32" }, "luminosity": { "type": "Integer", diff --git a/test/unit/ngsiv2/contextRequests/timeInstantMultipleMeasures.json b/test/unit/ngsiv2/contextRequests/timeInstantMultipleMeasures.json index 84ed2766c..c8660495d 100644 --- a/test/unit/ngsiv2/contextRequests/timeInstantMultipleMeasures.json +++ b/test/unit/ngsiv2/contextRequests/timeInstantMultipleMeasures.json @@ -18,7 +18,7 @@ "type": "sensor", "humidity": { "type": "percent", - "value": "111222" + "value": "111333" }, "TimeInstant": { "type": "DateTime", diff --git a/test/unit/ngsiv2/contextRequests/timeInstantMultipleMeasures1b.json b/test/unit/ngsiv2/contextRequests/timeInstantMultipleMeasures1b.json index 045b7afa8..0baabd819 100644 --- a/test/unit/ngsiv2/contextRequests/timeInstantMultipleMeasures1b.json +++ b/test/unit/ngsiv2/contextRequests/timeInstantMultipleMeasures1b.json @@ -24,15 +24,15 @@ "type": "sensor", "TimeInstant": { "type": "DateTime", - "value": "2020-02-22T22:22:22Z" + "value": "2023-03-23T23:33:33Z" }, "humidity": { "type": "percent", - "value": "111222", + "value": "111333", "metadata": { "TimeInstant": { "type": "DateTime", - "value": "2020-02-22T22:22:22Z" + "value": "2023-03-23T23:33:33Z" } } } @@ -42,15 +42,15 @@ "type": "sensor", "TimeInstant": { "type": "DateTime", - "value": "2020-02-22T22:22:22Z" + "value": "2024-03-23T23:33:33Z" }, "humidity": { "type": "percent", - "value": "111222", + "value": "111111", "metadata": { "TimeInstant": { "type": "DateTime", - "value": "2020-02-22T22:22:22Z" + "value": "2024-03-23T23:33:33Z" } } }