Skip to content

Commit

Permalink
Remove unnecessary cast to int from test (opensearch-project#14696)
Browse files Browse the repository at this point in the history
Signed-off-by: Lukáš Vlček <[email protected]>
  • Loading branch information
lukas-vlcek authored and kaushalmahi12 committed Jul 23, 2024
1 parent 7e41455 commit 4cfa868
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -571,13 +571,9 @@ public void testStatsObjectCreationViaStream() throws IOException {
assertEquals((int) deserializedStats.uploadBytesStarted, (int) transferTrackerStats.uploadBytesStarted);
assertEquals((int) deserializedStats.uploadBytesSucceeded, (int) transferTrackerStats.uploadBytesSucceeded);
assertEquals((int) deserializedStats.uploadBytesFailed, (int) transferTrackerStats.uploadBytesFailed);
assertEquals((int) deserializedStats.uploadBytesMovingAverage, transferTrackerStats.uploadBytesMovingAverage, 0);
assertEquals(
(int) deserializedStats.uploadBytesPerSecMovingAverage,
transferTrackerStats.uploadBytesPerSecMovingAverage,
0
);
assertEquals((int) deserializedStats.uploadTimeMovingAverage, transferTrackerStats.uploadTimeMovingAverage, 0);
assertEquals(deserializedStats.uploadBytesMovingAverage, transferTrackerStats.uploadBytesMovingAverage, 0);
assertEquals(deserializedStats.uploadBytesPerSecMovingAverage, transferTrackerStats.uploadBytesPerSecMovingAverage, 0);
assertEquals(deserializedStats.uploadTimeMovingAverage, transferTrackerStats.uploadTimeMovingAverage, 0);
assertEquals((int) deserializedStats.totalUploadsStarted, (int) transferTrackerStats.totalUploadsStarted);
assertEquals((int) deserializedStats.totalUploadsSucceeded, (int) transferTrackerStats.totalUploadsSucceeded);
assertEquals((int) deserializedStats.totalUploadsFailed, (int) transferTrackerStats.totalUploadsFailed);
Expand Down

0 comments on commit 4cfa868

Please sign in to comment.