Skip to content

Commit 4f0f6a7

Browse files
committed
update naming
1 parent b952654 commit 4f0f6a7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

gateway-ha/src/test/java/io/trino/gateway/ha/router/BaseTestQueryHistoryManager.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)