aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests/hashchain.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-10-03 00:51:53 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-10-03 00:51:53 +0100
commit452d4fae396589850e4dcf66dbf1209ea96f0ef1 (patch)
treecc7b5cbcfa053a06fe5db928b5359b5dd1d76784 /tests/unit_tests/hashchain.cpp
parentMerge pull request #2518 (diff)
downloadmonero-452d4fae396589850e4dcf66dbf1209ea96f0ef1.tar.xz
tests: fix hashchain unit tests
and relax the not-empty safety check to stay more intuitiuve
Diffstat (limited to '')
-rw-r--r--tests/unit_tests/hashchain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit_tests/hashchain.cpp b/tests/unit_tests/hashchain.cpp
index 0fa0f784a..e764f6afc 100644
--- a/tests/unit_tests/hashchain.cpp
+++ b/tests/unit_tests/hashchain.cpp
@@ -122,7 +122,7 @@ TEST(hashchain, trim)
ASSERT_EQ(hashchain.size(), 3);
ASSERT_EQ(hashchain[2], make_hash(3));
hashchain.trim(3);
- ASSERT_EQ(hashchain.offset(), 3);
+ ASSERT_EQ(hashchain.offset(), 2); // never gets it empty
ASSERT_EQ(hashchain.size(), 3);
ASSERT_FALSE(hashchain.empty());
ASSERT_EQ(hashchain.genesis(), make_hash(1));