Skip to content

Commit eadf2aa

Browse files
test(DHCPServer): ensure iface exemption test removes any previously initialized iface for opt1
1 parent 4ba91d8 commit eadf2aa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Tests/APIModelsDHCPServerTestCase.inc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,9 @@ class APIModelsDHCPServerTestCase extends TestCase {
523523
* Ensures non-static interfaces are exempt from DHCP server initialization. This is a regression test for #781
524524
*/
525525
public function test_non_static_interfaces_exempt_from_dhcp_server_initialization(): void {
526+
# Ensure no config entry exists for the `opt1` DHCP server
527+
Model::del_config('dhcpd/opt1');
528+
526529
# Temporarily add a mock interface using pppoe for IPv4
527530
Model::set_config('interfaces/opt1/ipaddr', 'pppoe');
528531

0 commit comments

Comments
 (0)