aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSumo Gr <sumogr@mail.com>2020-04-18 18:04:20 +0300
committerGitHub <noreply@github.com>2020-04-18 18:04:20 +0300
commitf8b1480f95bd2710a506b6f9c5a06ed464464e61 (patch)
tree29bb692103644f42b4d822e7ab9249a118cd3b95 /tests
parentMerge pull request #6314 (diff)
downloadmonero-f8b1480f95bd2710a506b6f9c5a06ed464464e61.tar.xz
unit_tests: fix gcc+ warning
Diffstat (limited to 'tests')
-rw-r--r--tests/unit_tests/levin.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit_tests/levin.cpp b/tests/unit_tests/levin.cpp
index 62b101a42..d2ef920ef 100644
--- a/tests/unit_tests/levin.cpp
+++ b/tests/unit_tests/levin.cpp
@@ -583,7 +583,9 @@ TEST_F(levin_notify, stem_without_padding)
{
const std::size_t sent = context->process_send_queue();
if (sent && is_stem)
+ {
EXPECT_EQ(1u, (context - contexts_.begin()) % 2);
+ }
send_count += sent;
}
@@ -653,7 +655,9 @@ TEST_F(levin_notify, local_without_padding)
{
const std::size_t sent = context->process_send_queue();
if (sent && is_stem)
+ {
EXPECT_EQ(1u, (context - contexts_.begin()) % 2);
+ }
send_count += sent;
}