@@ -532,15 +532,15 @@ void testGetTopology_StaleRecord() throws SQLException {
532532
533533 final String hostName1 = "hostName1" ;
534534 final String hostName2 = "hostName2" ;
535- final Float cpuUtilization = 11.1F ;
536- final Float nodeLag = 0.123F ;
535+ final Double cpuUtilization = 11.1D ;
536+ final Double nodeLag = 0.123D ;
537537 final Timestamp firstTimestamp = Timestamp .from (Instant .now ());
538538 final Timestamp secondTimestamp = new Timestamp (firstTimestamp .getTime () + 100 );
539539 when (mockResultSet .next ()).thenReturn (true , true , false );
540540 when (mockResultSet .getString (1 )).thenReturn (hostName1 ).thenReturn (hostName2 );
541541 when (mockResultSet .getBoolean (2 )).thenReturn (true ).thenReturn (true );
542- when (mockResultSet .getFloat (3 )).thenReturn (cpuUtilization ).thenReturn (cpuUtilization );
543- when (mockResultSet .getFloat (4 )).thenReturn (nodeLag ).thenReturn (nodeLag );
542+ when (mockResultSet .getDouble (3 )).thenReturn (cpuUtilization ).thenReturn (cpuUtilization );
543+ when (mockResultSet .getDouble (4 )).thenReturn (nodeLag ).thenReturn (nodeLag );
544544 when (mockResultSet .getTimestamp (5 )).thenReturn (firstTimestamp ).thenReturn (secondTimestamp );
545545 long weight = Math .round (nodeLag ) * 100L + Math .round (cpuUtilization );
546546 final HostSpec expectedWriter = new HostSpecBuilder (new SimpleHostAvailabilityStrategy ())
@@ -565,13 +565,13 @@ void testGetTopology_InvalidLastUpdatedTimestamp() throws SQLException {
565565 rdsHostListProvider .isInitialized = true ;
566566
567567 final String hostName = "hostName" ;
568- final Float cpuUtilization = 11.1F ;
569- final Float nodeLag = 0.123F ;
568+ final Double cpuUtilization = 11.1D ;
569+ final Double nodeLag = 0.123D ;
570570 when (mockResultSet .next ()).thenReturn (true , false );
571571 when (mockResultSet .getString (1 )).thenReturn (hostName );
572572 when (mockResultSet .getBoolean (2 )).thenReturn (true );
573- when (mockResultSet .getFloat (3 )).thenReturn (cpuUtilization );
574- when (mockResultSet .getFloat (4 )).thenReturn (nodeLag );
573+ when (mockResultSet .getDouble (3 )).thenReturn (cpuUtilization );
574+ when (mockResultSet .getDouble (4 )).thenReturn (nodeLag );
575575 when (mockResultSet .getTimestamp (5 )).thenThrow (WrongArgumentException .class );
576576
577577 final FetchTopologyResult result = rdsHostListProvider .getTopology (mockConnection , true );
0 commit comments