Bump Couchbase Java SDK to 3.4.6. (#1728)

Also add more time for findByIdWithLock case - it must be more than the
default timeout of 2.5 seconds.

Closes #1727.
This commit is contained in:
Michael Reiche
2023-05-05 09:39:45 -07:00
committed by mikereiche
parent 60a9a00bc5
commit 82d9a47975

View File

@@ -120,7 +120,7 @@ class ReactiveCouchbaseTemplateKeyValueIntegrationTests extends JavaIntegrationT
reactiveCouchbaseTemplate.upsertById(User.class).one(user).block();
User foundUser = reactiveCouchbaseTemplate.findById(User.class).withLock(Duration.ofSeconds(2))
User foundUser = reactiveCouchbaseTemplate.findById(User.class).withLock(Duration.ofSeconds(4))
.one(user.getId()).block();
user.setVersion(foundUser.getVersion());// version will have changed
assertEquals(user, foundUser);
@@ -130,7 +130,7 @@ class ReactiveCouchbaseTemplateKeyValueIntegrationTests extends JavaIntegrationT
);
assertTrue(exception.retryReasons().contains(RetryReason.KV_LOCKED), "should have been locked");
} finally {
sleepSecs(2);
sleepSecs(5);
reactiveCouchbaseTemplate.removeByQuery(User.class).withConsistency(REQUEST_PLUS).all().collectList().block();
}