Skip to content

Commit 492ebe7

Browse files
committed
Change the sleep on TTL tests from 5 to 2 seconds
1 parent b3fca88 commit 492ebe7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

couchbase-driver/src/test/java/org/jnosql/diana/couchbase/key/CouchbaseBucketManagerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public void shouldPutValueTtl() throws InterruptedException {
101101

102102
Optional<Value> otavio = keyValueEntityManager.get(KEY_OTAVIO);
103103
assertTrue(otavio.isPresent());
104-
Thread.sleep(5_000);
104+
Thread.sleep(2_000);
105105
otavio = keyValueEntityManager.get(KEY_OTAVIO);
106106
assertFalse(otavio.isPresent());
107107
}
@@ -112,7 +112,7 @@ public void shouldPutValuesTtl() throws InterruptedException {
112112
keyValueEntityManager.put(singleton(KeyValueEntity.of(KEY_OTAVIO, userOtavio)), Duration.ofSeconds(1L));
113113
Optional<Value> otavio = keyValueEntityManager.get(KEY_OTAVIO);
114114
assertTrue(otavio.isPresent());
115-
Thread.sleep(5_000);
115+
Thread.sleep(2_000);
116116
otavio = keyValueEntityManager.get(KEY_OTAVIO);
117117
assertFalse(otavio.isPresent());
118118
}

0 commit comments

Comments
 (0)