summary refs log tree commit diff stats
path: root/tests/stdlib/tnetconnect.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib/tnetconnect.nim')
-rw-r--r--tests/stdlib/tnetconnect.nim10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/stdlib/tnetconnect.nim b/tests/stdlib/tnetconnect.nim
index b74545710..ae654aed9 100644
--- a/tests/stdlib/tnetconnect.nim
+++ b/tests/stdlib/tnetconnect.nim
@@ -1,9 +1,11 @@
 discard """
+  disabled: "i386"
   matrix: "-d:ssl"
 """
 
 import std/net
 from std/strutils import `%`
+from stdtest/testutils import enableRemoteNetworking
 
 # bug #15215
 proc test() =
@@ -17,10 +19,12 @@ proc test() =
     wrapSocket(ctx, socket)
 
   # trying 2 sites makes it more resilent: refs #17458 this could give:
-  # Error: unhandled exception: Call to 'connect' timed out. [TimeoutError]
+  # * Call to 'connect' timed out. [TimeoutError]
+  # * No route to host [OSError]
   try:
     fn("www.nim-lang.org")
-  except TimeoutError:
+  except TimeoutError, OSError:
     fn("www.google.com")
 
-test()
+when enableRemoteNetworking:
+  test()