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:
committed by
mikereiche
parent
60a9a00bc5
commit
82d9a47975
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user