diff --git a/banman/store_test.go b/banman/store_test.go index e4b5f8c4..58b74530 100644 --- a/banman/store_test.go +++ b/banman/store_test.go @@ -123,4 +123,10 @@ func TestBanStore(t *testing.T) { // We'll query for second IP network again as it should now be unknown // to the BanStore. We should expect not to find anything regarding it. checkBanStore(ipNet2, false, 0, 0) + + //Unban ipNet1 + err = banStore.UnbanIPNet(ipNet1) + + //IpNet1 should be unknown to the BanStore + checkBanStore(ipNet1, false, 0, 0) }