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

@ -15,6 +15,7 @@ from net import TimeoutError
import nativesockets, os, httpclient, asyncdispatch
import std/[assertions, syncio]
from stdtest/testutils import enableRemoteNetworking
const manualTests = false
@ -178,5 +179,7 @@ proc ipv6Test() =
client.close()
ipv6Test()
syncTest()
waitFor(asyncTest())
when enableRemoteNetworking:
syncTest()
waitFor(asyncTest())