]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#549] address review comments
authorAndrei Pavel <andrei@isc.org>
Wed, 19 Apr 2023 17:35:30 +0000 (20:35 +0300)
committerAndrei Pavel <andrei@isc.org>
Wed, 19 Apr 2023 20:56:01 +0000 (23:56 +0300)
src/lib/dhcpsrv/testutils/generic_host_data_source_unittest.cc

index 0c1fa3de320c54b422d8b896d2bb4888771797ba..0754b3217e87bce3c9402ea733e0f41a88ef9bee 100644 (file)
@@ -3905,7 +3905,7 @@ GenericHostDataSourceTest::testUpdate() {
     boost::to_upper(hwaddr);
 
     // Updating a host that doesn't exist should throw.
-    EXPECT_THROW_MSG(hdsptr_->update(host), NoRowsAffected, "Host not updated (not found).");
+    EXPECT_THROW_MSG(hdsptr_->update(host), HostNotFound, "Host not updated (not found).");
 
     // There should be no hosts.
     ConstHostCollection hosts(hdsptr_->getAll4(v4_subnet));