|
@@ -452,6 +452,13 @@ func TestIsNotExist(t *testing.T) {
|
|
|
if !e.IsNotExist() {
|
|
|
t.Fatal("IsNotExist returned false, expected true")
|
|
|
}
|
|
|
+
|
|
|
+ // iptables may add more logs to the errors msgs
|
|
|
+ e.msg = "Another app is currently holding the xtables lock; waiting (1s) for it to exit..." + e.msg
|
|
|
+ if !e.IsNotExist() {
|
|
|
+ t.Fatal("IsNotExist returned false, expected true")
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
func TestIsNotExistForIPv6(t *testing.T) {
|
|
@@ -514,6 +521,12 @@ func TestIsNotExistForIPv6(t *testing.T) {
|
|
|
if !e.IsNotExist() {
|
|
|
t.Fatal("IsNotExist returned false, expected true")
|
|
|
}
|
|
|
+
|
|
|
+ // iptables may add more logs to the errors msgs
|
|
|
+ e.msg = "Another app is currently holding the xtables lock; waiting (1s) for it to exit..." + e.msg
|
|
|
+ if !e.IsNotExist() {
|
|
|
+ t.Fatal("IsNotExist returned false, expected true")
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
func TestFilterRuleOutput(t *testing.T) {
|