Skip to content

Commit 49bc549

Browse files
committed
Make iot-sensor avg-temperature test produce 106.2 to avoid double/decimal serialization ambiguity
Signed-off-by: Marvin Froeder <marvin@datasqrl.com>
1 parent cd4b16f commit 49bc549

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

iot-sensor-metrics/sensors-testdata/readings.jsonl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{"sensorid": 2, "temperature": 12.7, "event_time": "2024-10-16T22:53:55.390Z"}
88
{"sensorid": 2, "temperature": 14.7, "event_time": "2024-10-16T22:53:55.383Z"}
99
{"sensorid": 2, "temperature": 110.1, "event_time": "2024-10-16T22:53:55.376Z"}
10-
{"sensorid": 2, "temperature": 105.7, "event_time": "2024-10-16T22:53:47.029Z"}
10+
{"sensorid": 2, "temperature": 106.7, "event_time": "2024-10-16T22:53:47.029Z"}
1111
{"sensorid": 2, "temperature": 80.5, "event_time": "2024-10-16T22:53:47.023Z"}
1212
{"sensorid": 3, "temperature": 112.3, "event_time": "2024-10-16T22:53:55.388Z"}
1313
{"sensorid": 3, "temperature": 88.5, "event_time": "2024-10-16T22:53:55.380Z"}

iot-sensor-metrics/snapshots-api/SensorHighTempTest.snapshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"data" : {
33
"SensorHighTempTest" : [ {
44
"num" : 5,
5-
"avg_temp" : 106
5+
"avg_temp" : 106.2
66
} ]
77
}
88
}

iot-sensor-metrics/snapshots-api/hightemp_subscription.snapshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"data" : {
1717
"HighTemp" : {
1818
"sensorid" : 2,
19-
"temperature" : 105.7
19+
"temperature" : 106.7
2020
}
2121
}
2222
}, {

iot-sensor-metrics/snapshots-api/readingsbytemp-query.snapshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"temperature" : 110.1
99
}, {
1010
"sensorid" : 2,
11-
"temperature" : 105.7
11+
"temperature" : 106.7
1212
}, {
1313
"sensorid" : 1,
1414
"temperature" : 101.5

iot-sensor-metrics/snapshots-testdata/SensorHighTempTest.snapshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"data" : {
33
"SensorHighTempTest" : [ {
44
"num" : 5,
5-
"avg_temp" : 106
5+
"avg_temp" : 106.2
66
} ]
77
}
88
}

iot-sensor-metrics/tests-api/addreading1-mutation.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ mutation {
88
AddReading3: SensorReading(event: {sensorid: 3, temperature: 60.2}) {
99
sensorid
1010
}
11-
AddReading4: SensorReading(event: {sensorid: 2, temperature: 105.7}) {
11+
AddReading4: SensorReading(event: {sensorid: 2, temperature: 106.7}) {
1212
sensorid
1313
}
1414
AddReading5: SensorReading(event: {sensorid: 1, temperature: 73.4}) {

0 commit comments

Comments
 (0)