Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
andreidan committed Nov 15, 2023
1 parent 6ef2e5d commit 734e45b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,4 @@ public static Tuple<Long, LongSummaryStatistics> calculateStats(Collection<DataS
}
return new Tuple<>(dataStreamsWithLifecycles, retentionStats);
}

private record Result(long dataStreamsWithLifecycles, LongSummaryStatistics retentionStats) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,11 @@ public void testLifecycleStats() {
// 3 data streams with an enabled lifecycle
assertThat(stats.v1(), is(3L));
LongSummaryStatistics longSummaryStatistics = stats.v2();
assertThat(longSummaryStatistics.getMax(), is(1000));
assertThat(longSummaryStatistics.getMin(), is(100));
assertThat(longSummaryStatistics.getMax(), is(1000L));
assertThat(longSummaryStatistics.getMin(), is(100L));
// only counting the ones with an effective retention in the summary statistics
assertThat(longSummaryStatistics.getCount(), is(2));
assertThat(longSummaryStatistics.getAverage(), is(550));
assertThat(longSummaryStatistics.getCount(), is(2L));
assertThat(longSummaryStatistics.getAverage(), is(550.0));
}

@Override
Expand Down

0 comments on commit 734e45b

Please sign in to comment.