This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-pool.git
The following commit(s) were added to refs/heads/master by this push:
new 19c8494 Fix tests (again, failing on GH, ok, locally).
19c8494 is described below
commit 19c8494ac464032679cfd8d5bd0b82d139aafba2
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Aug 13 10:54:53 2021 -0400
Fix tests (again, failing on GH, ok, locally).
---
.../java/org/apache/commons/pool2/impl/TestDefaultPooledObject.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/src/test/java/org/apache/commons/pool2/impl/TestDefaultPooledObject.java
b/src/test/java/org/apache/commons/pool2/impl/TestDefaultPooledObject.java
index 40cb288..5dc855d 100644
--- a/src/test/java/org/apache/commons/pool2/impl/TestDefaultPooledObject.java
+++ b/src/test/java/org/apache/commons/pool2/impl/TestDefaultPooledObject.java
@@ -71,7 +71,7 @@ public class TestDefaultPooledObject {
assertFalse(dpo.getIdleDuration().isNegative());
assertFalse(dpo.getIdleDuration().isZero());
// We use greaterThanOrEqualTo instead of equal because "now" many be
different when each argument is evaluated.
- assertThat(dpo.getIdleDuration(),
greaterThanOrEqualTo(dpo.getActiveDuration()));
+ assertThat(dpo.getIdleDuration(),
lessThanOrEqualTo(dpo.getActiveDuration()));
// Depreacted
assertThat(dpo.getIdleDuration().toMillis(),
lessThanOrEqualTo(dpo.getIdleTimeMillis()));
assertThat(dpo.getIdleDuration(),
lessThanOrEqualTo(dpo.getIdleTime()));