summaryrefslogtreecommitdiff
path: root/test/backupstore
diff options
context:
space:
mode:
Diffstat (limited to 'test/backupstore')
-rw-r--r--test/backupstore/testbackupstore.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/backupstore/testbackupstore.cpp b/test/backupstore/testbackupstore.cpp
index 1e4ed4dc..f1ff3223 100644
--- a/test/backupstore/testbackupstore.cpp
+++ b/test/backupstore/testbackupstore.cpp
@@ -2174,9 +2174,12 @@ bool test_cannot_open_multiple_writable_connections()
BackupProtocolClient protocolWritable3(open_conn("localhost", context));
TEST_THAT(assert_writable_connection_fails(protocolWritable3));
- BackupProtocolClient protocolReadOnly2(open_conn("localhost", context));
- TEST_EQUAL(0x8732523ab23aLL,
- assert_readonly_connection_succeeds(protocolReadOnly2));
+ // Do not dedent. Object needs to go out of scope to release lock
+ {
+ BackupProtocolClient protocolReadOnly2(open_conn("localhost", context));
+ TEST_EQUAL(0x8732523ab23aLL,
+ assert_readonly_connection_succeeds(protocolReadOnly2));
+ }
protocolWritable.QueryFinished();
return teardown_test_backupstore();