]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2815] Fix unit test
authorSlawek Figiel <slawek@isc.org>
Tue, 9 May 2023 16:39:43 +0000 (18:39 +0200)
committerSlawek Figiel <slawek@isc.org>
Thu, 25 May 2023 11:29:29 +0000 (13:29 +0200)
src/lib/dhcpsrv/tests/cfg_hosts_unittest.cc

index 8bb0ff46f62089eb8354ddb0d2fa2fc7117f78a6..337a7200dbe626594d6a2ef812f9bc25517dc154 100644 (file)
@@ -1459,13 +1459,6 @@ TEST_F(CfgHostsTest, update) {
                                                 SubnetID(1), IOAddress("0.0.0.0"),
                                                 "foo.example.com"));
 
-    // Updating any host currently throws because it relies on delete being
-    // implemented which is not.
-    EXPECT_THROW_MSG(cfg.update(host), NotImplemented, "sorry, not implemented");
-
-    // Temporary return. Remove it and the preceding EXPECT_THROW_MSG when delete gets implemented.
-    return;
-
     // Updating a host that doesn't exist should throw.
     EXPECT_THROW_MSG(cfg.update(host), HostNotFound, "Host not updated (not found).");