diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-10-15 18:27:08 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-10-15 18:27:08 +0200 |
commit | 1c546e0d813a201a536c13bdd015afb68377a264 (patch) | |
tree | 2b3527d422bc3517a811bb46ac4b688a27ea8947 /tests | |
parent | Merge pull request #2556 (diff) | |
parent | tests: fix hashchain unit tests (diff) | |
download | monero-1c546e0d813a201a536c13bdd015afb68377a264.tar.xz |
Merge pull request #2565
452d4fae tests: fix hashchain unit tests (moneromooo-monero)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit_tests/hashchain.cpp | 2 |
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)); |