Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
dernasherbrezon committed Nov 2, 2024
1 parent c112a13 commit fe8c6eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/java/ru/r2cloud/cloud/InfluxDBClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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)");
Expand All @@ -60,7 +61,7 @@ public void testSendObservation() throws Exception {
List<String> 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
Expand Down

0 comments on commit fe8c6eb

Please sign in to comment.