summary refs log tree commit diff stats
path: root/tests/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib')
-rw-r--r--tests/stdlib/tsockets.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/stdlib/tsockets.nim b/tests/stdlib/tsockets.nim
index 6078504f5..2b282c80d 100644
--- a/tests/stdlib/tsockets.nim
+++ b/tests/stdlib/tsockets.nim
@@ -1,6 +1,7 @@
 import sockets
 var s: TSocket
 s = socket()
+if s == InvalidSocket: osError(osLastError())
 
 s.connect("www.google.com", TPort(80))