File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Tests Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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 ' );
You can’t perform that action at this time.
0 commit comments