From fe8c6ebe65a6ed4d6e58f47e24a13adfd2e60e31 Mon Sep 17 00:00:00 2001 From: dernasherbrezon Date: Sat, 2 Nov 2024 19:25:06 +0000 Subject: [PATCH] fix unit test --- src/test/java/ru/r2cloud/cloud/InfluxDBClientTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/ru/r2cloud/cloud/InfluxDBClientTest.java b/src/test/java/ru/r2cloud/cloud/InfluxDBClientTest.java index f1a31c9e..842185ad 100644 --- a/src/test/java/ru/r2cloud/cloud/InfluxDBClientTest.java +++ b/src/test/java/ru/r2cloud/cloud/InfluxDBClientTest.java @@ -52,6 +52,7 @@ public void testSendObservation() throws Exception { observation.setStartTimeMillis(1601173648133L); observation.setEndTimeMillis(1601173678133L); observation.setNumberOfDecodedPackets(10L); + observation.setTotalSize(1024L); Satellite satellite = new Satellite(); satellite.setName("CAS-5A (FO-118)"); @@ -60,7 +61,7 @@ public void testSendObservation() throws Exception { List metrics = server.getMetricsByDatabase().get("r2cloud"); assertNotNull(metrics); assertEquals(1, metrics.size()); - assertEquals("observation,satellite=CAS-5A(FO-118),deviceId=rtlsdr.0,antennaType=DIRECTIONAL,hostname=test.local tleUpdateLatency=30000,tleEpochLatency=30000,numberOfDecodedPackets=10,duration=30000 1601173648133000000", metrics.get(0)); + assertEquals("observation,satellite=CAS-5A(FO-118),deviceId=rtlsdr.0,antennaType=DIRECTIONAL,hostname=test.local tleUpdateLatency=30000,tleEpochLatency=30000,numberOfDecodedPackets=10,totalSize=1024,duration=30000 1601173648133000000", metrics.get(0)); } @Test