Skip to content

Commit 77a3de5

Browse files
test: give /dev/pf time to apply limiters
1 parent ee6feaf commit 77a3de5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,8 +795,9 @@ class APIModelsFirewallRuleTestCase extends TestCase {
795795
async: false,
796796
);
797797
$rule->create(apply: true);
798+
sleep(3); // Wait a bit to ensure device is not busy
798799

799-
# Check pfctl rules and ensure the dnpipe is correctly represented
800+
# Ensure the dnpipe is correctly represented
800801
$pfctl = new Command('pfctl -sr');
801802
$this->assert_str_contains(
802803
$pfctl->output,
@@ -842,6 +843,7 @@ class APIModelsFirewallRuleTestCase extends TestCase {
842843
async: false,
843844
);
844845
$rule->create(apply: true);
846+
sleep(3); // Wait a bit to ensure device is not busy
845847

846848
# Check pfctl rules and ensure the dnpipe is correctly represented
847849
$pfctl = new Command('pfctl -sr');
@@ -892,6 +894,7 @@ class APIModelsFirewallRuleTestCase extends TestCase {
892894
async: false,
893895
);
894896
$rule->create(apply: true);
897+
sleep(3); // Wait a bit to ensure device is not busy
895898

896899
# Check pfctl rules and ensure the dnpipe is correctly represented
897900
$pfctl = new Command('pfctl -sr');

0 commit comments

Comments
 (0)