diff options
author | Chris Wilson <chris+github@qwirx.com> | 2014-10-31 22:09:48 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2014-10-31 22:09:48 +0000 |
commit | 286c37b195f15236ccb0f51fd912777c17a2e2db (patch) | |
tree | 9bf8d6dc691838ddb92108844335b639931787e9 /test/backupstore | |
parent | d01f128b4580f312cd7ca7bf2329d80cdaced1b4 (diff) |
Merge branch 'master' of /home/chris/projects/2004/boxi/bb-git
Diffstat (limited to 'test/backupstore')
-rw-r--r-- | test/backupstore/testbackupstore.cpp | 9 |
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(); |