diff options
Diffstat (limited to 'tests/unit_tests')
-rw-r--r-- | tests/unit_tests/hardfork.cpp | 2 | ||||
-rw-r--r-- | tests/unit_tests/logging.cpp | 2 | ||||
-rw-r--r-- | tests/unit_tests/output_selection.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit_tests/hardfork.cpp b/tests/unit_tests/hardfork.cpp index c95f3eaae..56958a0d8 100644 --- a/tests/unit_tests/hardfork.cpp +++ b/tests/unit_tests/hardfork.cpp @@ -375,7 +375,7 @@ TEST(voting, threshold) db.add_block(mkblock(hf, h, v), 0, 0, 0, 0, 0, crypto::hash()); bool ret = hf.add(db.get_block_from_height(h), h); if (h >= 8 && threshold == 87) { - // for threshold 87, we reach the treshold at height 7, so from height 8, hard fork to version 2, but 8 tries to add 1 + // for threshold 87, we reach the threshold at height 7, so from height 8, hard fork to version 2, but 8 tries to add 1 ASSERT_FALSE(ret); } else { diff --git a/tests/unit_tests/logging.cpp b/tests/unit_tests/logging.cpp index fc5c7afda..b13919831 100644 --- a/tests/unit_tests/logging.cpp +++ b/tests/unit_tests/logging.cpp @@ -166,7 +166,7 @@ TEST(logging, glob_prefix) TEST(logging, last_precedence) { init(); - mlog_set_categories("gobal:FATAL,glo*:DEBUG"); + mlog_set_categories("global:FATAL,glo*:DEBUG"); log(); std::string str; ASSERT_TRUE(load_log_to_string(log_filename, str)); diff --git a/tests/unit_tests/output_selection.cpp b/tests/unit_tests/output_selection.cpp index 04ad6e914..dd12d07f3 100644 --- a/tests/unit_tests/output_selection.cpp +++ b/tests/unit_tests/output_selection.cpp @@ -236,7 +236,7 @@ TEST(select_outputs, exact_unlock_block) const uint64_t exact_block_offsets_stop_exclusive = *(first_block_too_young - 1); // if too low we may fail by not picking exact block - // if too high test is not as senstive as it could be + // if too high test is not as sensitive as it could be constexpr size_t NUM_PICK_TESTS = 1 << 20; bool picked_exact_unlock_block = false; |