From 8ee2aa5972c9ec4041d2af8948f86df2b8e9bfbc Mon Sep 17 00:00:00 2001 From: Ayoub Kaanich Date: Wed, 3 Jan 2024 21:41:07 +0100 Subject: [PATCH] Catch SystemException to include SocketException as well --- Test/Tunneling/TunnelDeviceTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Test/Tunneling/TunnelDeviceTest.cs b/Test/Tunneling/TunnelDeviceTest.cs index ce73fb31..b1897086 100644 --- a/Test/Tunneling/TunnelDeviceTest.cs +++ b/Test/Tunneling/TunnelDeviceTest.cs @@ -84,7 +84,7 @@ public void TestUdpTunnel() { tapDevice.Open(DeviceModes.Promiscuous); } - catch (IOException ex) + catch (SystemException ex) { Assert.Fail(ex.Message); }