Skip to content

Commit

Permalink
fix system test
Browse files Browse the repository at this point in the history
  • Loading branch information
splitice committed Aug 8, 2023
1 parent 8c414ab commit 8986c94
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions IPTables.Net.Tests/IpTableSystemTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using IPTables.Net.Iptables;
using IPTables.Net.Exceptions;
using IPTables.Net.Iptables;
using IPTables.Net.Iptables.Adapter;
using NUnit.Framework;
using System;
Expand Down Expand Up @@ -36,7 +37,7 @@ public void TestGetRules()
}

// Invalid table cause exception
Assert.Throws<ArgumentException>(() => _system.GetRules("_invalidTableName", IP_VERSION));
Assert.Throws<IpTablesNetException>(() => _system.GetRules("_invalidTableName", IP_VERSION));
}
}

Expand Down

0 comments on commit 8986c94

Please sign in to comment.