Skip to content

Commit 8986c94

Browse files
committed
fix system test
1 parent 8c414ab commit 8986c94

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

IPTables.Net.Tests/IpTableSystemTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using IPTables.Net.Iptables;
1+
using IPTables.Net.Exceptions;
2+
using IPTables.Net.Iptables;
23
using IPTables.Net.Iptables.Adapter;
34
using NUnit.Framework;
45
using System;
@@ -36,7 +37,7 @@ public void TestGetRules()
3637
}
3738

3839
// Invalid table cause exception
39-
Assert.Throws<ArgumentException>(() => _system.GetRules("_invalidTableName", IP_VERSION));
40+
Assert.Throws<IpTablesNetException>(() => _system.GetRules("_invalidTableName", IP_VERSION));
4041
}
4142
}
4243

0 commit comments

Comments
 (0)