Commit db358c1a authored by Marcin Siodelski's avatar Marcin Siodelski

[master] Corrected invalid parameter passed to the test function.

This is to eliminate some of the recently found covertity isssues.
Reviewed on jabber.
parent 05033744
......@@ -599,8 +599,8 @@ void GenericHostDataSourceTest::testGet6ByHWAddr() {
ASSERT_TRUE(hdsptr_);
// Create a host reservations.
HostPtr host1 = initializeHost6("2001:db8::1", Host::IDENT_HWADDR, "hw-address");
HostPtr host2 = initializeHost6("2001:db8::2", Host::IDENT_HWADDR, "hw-address");
HostPtr host1 = initializeHost6("2001:db8::1", Host::IDENT_HWADDR, false);
HostPtr host2 = initializeHost6("2001:db8::2", Host::IDENT_HWADDR, false);
// Sanity check: make sure the hosts have different HW addresses.
ASSERT_TRUE(host1->getHWAddress());
......@@ -635,8 +635,8 @@ void GenericHostDataSourceTest::testGet6ByClientId() {
ASSERT_TRUE(hdsptr_);
// Create a host reservations.
HostPtr host1 = initializeHost6("2001:db8::1", Host::IDENT_DUID, "hw-address");
HostPtr host2 = initializeHost6("2001:db8::2", Host::IDENT_DUID, "hw-address");
HostPtr host1 = initializeHost6("2001:db8::1", Host::IDENT_DUID, false);
HostPtr host2 = initializeHost6("2001:db8::2", Host::IDENT_DUID, false);
// Sanity check: make sure the hosts have different HW addresses.
ASSERT_TRUE(host1->getDuid());
......
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