aboutsummaryrefslogtreecommitdiff
path: root/src/test/dbwrapper_tests.cpp
diff options
context:
space:
mode:
authorpracticalswift <[email protected]>2018-12-12 14:31:38 +0100
committerpracticalswift <[email protected]>2018-12-13 09:37:23 +0100
commitc84c2b8c92eb56b3b3793fc95265158f5eeb00db (patch)
tree38a2fd3c0b2c44f4d68bb7c7e41609207f701a10 /src/test/dbwrapper_tests.cpp
parentMerge #14908: test: Removed implicit CTransaction constructor calls from test... (diff)
downloaddiscoin-c84c2b8c92eb56b3b3793fc95265158f5eeb00db.tar.xz
discoin-c84c2b8c92eb56b3b3793fc95265158f5eeb00db.zip
tests: Test for expected return values when calling functions returning a success code
Diffstat (limited to 'src/test/dbwrapper_tests.cpp')
-rw-r--r--src/test/dbwrapper_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/dbwrapper_tests.cpp b/src/test/dbwrapper_tests.cpp
index 1034d4ade..94e8c9534 100644
--- a/src/test/dbwrapper_tests.cpp
+++ b/src/test/dbwrapper_tests.cpp
@@ -67,7 +67,7 @@ BOOST_AUTO_TEST_CASE(dbwrapper_batch)
// Remove key3 before it's even been written
batch.Erase(key3);
- dbw.WriteBatch(batch);
+ BOOST_CHECK(dbw.WriteBatch(batch));
BOOST_CHECK(dbw.Read(key, res));
BOOST_CHECK_EQUAL(res.ToString(), in.ToString());