Commit 409918e8 authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[3604] Fix in the cfg_iface equality operator unit test.

parent 76c2cd05
......@@ -339,12 +339,12 @@ TEST_F(CfgIfaceTest, equality) {
EXPECT_FALSE(cfg1 != cfg2);
// Differ by socket type.
cfg1.useSocketType(AF_INET, "raw");
cfg1.useSocketType(AF_INET, "datagram");
EXPECT_FALSE(cfg1 == cfg2);
EXPECT_TRUE(cfg1 != cfg2);
// Now, both should use the same socket type.
cfg2.useSocketType(AF_INET, "raw");
cfg2.useSocketType(AF_INET, "datagram");
EXPECT_TRUE(cfg1 == cfg2);
EXPECT_FALSE(cfg1 != cfg2);
}
......
Markdown is supported
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