summaryrefslogtreecommitdiff
path: root/tests/unit_node/net_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit_node/net_test.ts')
-rw-r--r--tests/unit_node/net_test.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit_node/net_test.ts b/tests/unit_node/net_test.ts
index e08b24c02..89a9fb6ba 100644
--- a/tests/unit_node/net_test.ts
+++ b/tests/unit_node/net_test.ts
@@ -200,3 +200,9 @@ Deno.test("[node/net] multiple Sockets should get correct server data", async ()
assertEquals(sockets[i].events, [`${i}`.repeat(3), `${i}`.repeat(3)]);
}
});
+
+Deno.test("[node/net] BlockList doesn't leak resources", () => {
+ const blockList = new net.BlockList();
+ blockList.addAddress("1.1.1.1");
+ assert(blockList.check("1.1.1.1"));
+});