diff options
| author | practicalswift <[email protected]> | 2018-12-12 14:31:38 +0100 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2018-12-13 09:37:23 +0100 |
| commit | c84c2b8c92eb56b3b3793fc95265158f5eeb00db (patch) | |
| tree | 38a2fd3c0b2c44f4d68bb7c7e41609207f701a10 /src/test/dbwrapper_tests.cpp | |
| parent | Merge #14908: test: Removed implicit CTransaction constructor calls from test... (diff) | |
| download | discoin-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.cpp | 2 |
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()); |