aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-07-26 22:40:22 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-07-26 22:40:38 +0100
commit89e68d778d4dc6e24f4de55109482a4451ee5691 (patch)
treed4d5cd56dbb72723e1ca9bb3358977ef940a2c08 /tests
parentdb_lmdb: add some missing api call checks (diff)
downloadmonero-89e68d778d4dc6e24f4de55109482a4451ee5691.tar.xz
unit_tests: check adding checkpoints succeeded
Diffstat (limited to 'tests')
-rw-r--r--tests/unit_tests/checkpoints.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit_tests/checkpoints.cpp b/tests/unit_tests/checkpoints.cpp
index cb490023d..b1d251d26 100644
--- a/tests/unit_tests/checkpoints.cpp
+++ b/tests/unit_tests/checkpoints.cpp
@@ -49,7 +49,7 @@ TEST(checkpoints_is_alternative_block_allowed, handles_empty_checkpoints)
TEST(checkpoints_is_alternative_block_allowed, handles_one_checkpoint)
{
checkpoints cp;
- cp.add_checkpoint(5, "0000000000000000000000000000000000000000000000000000000000000000");
+ ASSERT_TRUE(cp.add_checkpoint(5, "0000000000000000000000000000000000000000000000000000000000000000"));
ASSERT_FALSE(cp.is_alternative_block_allowed(0, 0));
@@ -87,8 +87,8 @@ TEST(checkpoints_is_alternative_block_allowed, handles_one_checkpoint)
TEST(checkpoints_is_alternative_block_allowed, handles_two_and_more_checkpoints)
{
checkpoints cp;
- cp.add_checkpoint(5, "0000000000000000000000000000000000000000000000000000000000000000");
- cp.add_checkpoint(9, "0000000000000000000000000000000000000000000000000000000000000000");
+ ASSERT_TRUE(cp.add_checkpoint(5, "0000000000000000000000000000000000000000000000000000000000000000"));
+ ASSERT_TRUE(cp.add_checkpoint(9, "0000000000000000000000000000000000000000000000000000000000000000"));
ASSERT_FALSE(cp.is_alternative_block_allowed(0, 0));