Commit c989ea12 authored by Thomas Markwalder's avatar Thomas Markwalder
Browse files

[master] Corrected Lease6 logical operator unit tests fail intermittently.

Equality operator tests were reliant on two Lease6 structs, constructed
back to back to have the same value for cltt_, which gets its value from
time(NULL).  Corrected this by simple assignment to ensure they are always
equal as the test expects.
parent 775f572c
......@@ -487,6 +487,10 @@ TEST(Lease6, OperatorEquals) {
Lease6 lease2(Lease6::LEASE_IA_NA, addr, duid, iaid, 100, 200, 50, 80,
// cltt_ constructs with time(NULL), make sure they are always equal
lease1.cltt_ = lease2.cltt_;
EXPECT_TRUE(lease1 == lease2);
EXPECT_FALSE(lease1 != lease2);
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