From: Slawek Figiel Date: Tue, 9 May 2023 16:39:43 +0000 (+0200) Subject: [#2815] Fix unit test X-Git-Tag: Kea-2.3.8~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd8f72945df004a9583a20649a0985a6b490fe3c;p=thirdparty%2Fkea.git [#2815] Fix unit test --- diff --git a/src/lib/dhcpsrv/tests/cfg_hosts_unittest.cc b/src/lib/dhcpsrv/tests/cfg_hosts_unittest.cc index 8bb0ff46f6..337a7200db 100644 --- a/src/lib/dhcpsrv/tests/cfg_hosts_unittest.cc +++ b/src/lib/dhcpsrv/tests/cfg_hosts_unittest.cc @@ -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).");