Allow some tests to run without network (#20955)

* thttpclient.nim: respect NIM_TESTAMENT_REMOTE_NETWORKING

* tnetconnect.nim: respect NIM_TESTAMENT_REMOTE_NETWORKING
This commit is contained in:
Anna 2022-11-29 05:40:28 +00:00 • committed by GitHub
commit b5a008bac8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View file

@ -5,6 +5,7 @@ discard """
import std/net
from std/strutils import `%`
from stdtest/testutils import enableRemoteNetworking
# bug #15215
proc test() =
@ -25,4 +26,5 @@ proc test() =
except TimeoutError, OSError:
fn("www.google.com")
test()
when enableRemoteNetworking:
test()