aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-10-15 18:27:08 +0200
committerRiccardo Spagni <ric@spagni.net>2017-10-15 18:27:08 +0200
commit1c546e0d813a201a536c13bdd015afb68377a264 (patch)
tree2b3527d422bc3517a811bb46ac4b688a27ea8947 /tests/unit_tests
parentMerge pull request #2556 (diff)
parenttests: fix hashchain unit tests (diff)
downloadmonero-1c546e0d813a201a536c13bdd015afb68377a264.tar.xz
Merge pull request #2565
452d4fae tests: fix hashchain unit tests (moneromooo-monero)
Diffstat (limited to 'tests/unit_tests')
-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));