Merge pull request #6460

f8b1480 unit_tests: fix gcc+ warning (sumogr)
This commit is contained in:
luigi1111 2020-05-01 15:50:19 -05:00
commit a5cc613a68
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010
1 changed files with 4 additions and 0 deletions

View File

@ -583,7 +583,9 @@ TEST_F(levin_notify, stem_without_padding)
{ {
const std::size_t sent = context->process_send_queue(); const std::size_t sent = context->process_send_queue();
if (sent && is_stem) if (sent && is_stem)
{
EXPECT_EQ(1u, (context - contexts_.begin()) % 2); EXPECT_EQ(1u, (context - contexts_.begin()) % 2);
}
send_count += sent; send_count += sent;
} }
@ -653,7 +655,9 @@ TEST_F(levin_notify, local_without_padding)
{ {
const std::size_t sent = context->process_send_queue(); const std::size_t sent = context->process_send_queue();
if (sent && is_stem) if (sent && is_stem)
{
EXPECT_EQ(1u, (context - contexts_.begin()) % 2); EXPECT_EQ(1u, (context - contexts_.begin()) % 2);
}
send_count += sent; send_count += sent;
} }