Commit c87fab72 authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[master] Use equality operator to compare iterators in unit test.

parent b8eb610b
......@@ -2164,11 +2164,11 @@ TEST_F(Dhcpv6SrvTest, rsoo) {
// Option 110 should be copied to the client
EXPECT_NE(client.config_.options_.find(110), client.config_.options_.end());
EXPECT_FALSE(client.config_.options_.find(110) == client.config_.options_.end());
// Options 109 and 111 should not be copied (they are not RSOO-enabled)
EXPECT_EQ(client.config_.options_.find(109), client.config_.options_.end());
EXPECT_EQ(client.config_.options_.find(111), client.config_.options_.end());
EXPECT_TRUE(client.config_.options_.find(109) == client.config_.options_.end());
EXPECT_TRUE(client.config_.options_.find(111) == client.config_.options_.end());
// Test that the server processes RSOO (Relay Supplied Options option) correctly
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment