File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
gateway-ha/src/test/java/io/trino/gateway/ha/router Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -119,16 +119,16 @@ void testFindDistribution()
119119 void testTimestampParsing ()
120120 {
121121 // This ensures odd-minute values remain precision when converted from different formats.
122- long result = 30338641 ;
122+ long expectedMinuteBucket = 30338641 ;
123123
124124 // postgres: minute -> {Double@9333} 3.0338641E7
125125 String postgresTimestamp = "3.0338641E7" ;
126- long parsedLongTimestamp = new BigDecimal (postgresTimestamp ).longValue ();
127- assertThat (parsedLongTimestamp ).isEqualTo (result );
126+ long parsedPostgresMinute = new BigDecimal (postgresTimestamp ).longValue ();
127+ assertThat (parsedPostgresMinute ).isEqualTo (expectedMinuteBucket );
128128
129129 // mysql: minute -> {BigDecimal@9775} "30338641"
130130 String mysqlTimestamp = "30338641" ;
131- long parsedLongTimestamp2 = new BigDecimal (mysqlTimestamp ).longValue ();
132- assertThat (parsedLongTimestamp2 ).isEqualTo (result );
131+ long parsedMysqlMinute = new BigDecimal (mysqlTimestamp ).longValue ();
132+ assertThat (parsedMysqlMinute ).isEqualTo (expectedMinuteBucket );
133133 }
134134}
You can’t perform that action at this time.
0 commit comments