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:
parent
15d00ca0e1
commit
b5a008bac8
2 changed files with 8 additions and 3 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue