Skip to content
Permalink
Browse files
Fix typos.
  • Loading branch information
Gary Gregory committed Aug 13, 2021
1 parent 748323b commit 983aa5edf20710edd01af9871948e59312f92eb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
@@ -52,7 +52,7 @@ public void testInitialStateActiveDuration() throws InterruptedException {
assertThat(1L, lessThanOrEqualTo(2L)); // sanity check
assertThat(Duration.ZERO, lessThanOrEqualTo(Duration.ZERO.plusNanos(1))); // sanity check
assertThat(dpo.getActiveDuration(), lessThanOrEqualTo(dpo.getIdleDuration()));
// Depreacted
// Deprecated
assertThat(dpo.getActiveDuration().toMillis(), lessThanOrEqualTo(dpo.getActiveTimeMillis()));
assertThat(dpo.getActiveDuration(), lessThanOrEqualTo(dpo.getActiveTime()));
assertThat(dpo.getActiveDuration(), lessThanOrEqualTo(dpo.getIdleTime()));
@@ -71,7 +71,7 @@ public void testInitialStateIdleDuration() throws InterruptedException {
assertFalse(dpo.getIdleDuration().isZero());
// We use greaterThanOrEqualTo instead of equal because "now" many be different when each argument is evaluated.
assertThat(dpo.getIdleDuration(), lessThanOrEqualTo(dpo.getActiveDuration()));
// Depreacted
// Deprecated
assertThat(dpo.getIdleDuration().toMillis(), lessThanOrEqualTo(dpo.getIdleTimeMillis()));
assertThat(dpo.getIdleDuration(), lessThanOrEqualTo(dpo.getIdleTime()));
assertThat(dpo.getIdleDuration(), lessThanOrEqualTo(dpo.getActiveTime()));
@@ -1048,7 +1048,7 @@ public void testBorrowTimings() throws Exception {
assertFalse(dpo.getActiveDuration().isNegative());
assertFalse(dpo.getActiveDuration().isZero());
assertThat(dpo.getActiveDuration(), lessThanOrEqualTo(dpo.getIdleDuration()));
// Depreacted
// Deprecated
assertThat(dpo.getActiveDuration().toMillis(), lessThanOrEqualTo(dpo.getActiveTimeMillis()));
assertThat(dpo.getActiveDuration(), lessThanOrEqualTo(dpo.getActiveTime()));
assertThat(dpo.getActiveDuration(), lessThanOrEqualTo(dpo.getIdleTime()));

0 comments on commit 983aa5e

Please sign in to comment.