We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f853e66 commit 4f3034fCopy full SHA for 4f3034f
tests/testapp/testapp_lock.cc
@@ -148,11 +148,14 @@ TEST_P(LockTest, DeleteLockedDocument) {
148
149
TEST_P(LockTest, UnlockNoSuchDocument) {
150
try {
151
+ userConnection->setAutoRetryTmpfail(false);
152
userConnection->unlock(name, Vbid(0), 0xdeadbeef);
153
FAIL() << "The document should not exist";
154
} catch (const ConnectionError& ex) {
- EXPECT_TRUE(ex.isNotFound());
155
+ // full eviction returns tmpfail
156
+ EXPECT_TRUE(ex.isNotFound() || ex.isTemporaryFailure());
157
}
158
+ userConnection->setAutoRetryTmpfail(true);
159
160
161
TEST_P(LockTest, UnlockInvalidVBucket) {
0 commit comments