mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-28 23:55:43 +00:00
fix(tests): add missing import for tests (#1375)
This commit is contained in:
parent
853995e17f
commit
1e8e60caed
@ -4,6 +4,7 @@ import
|
|||||||
std/[sequtils, options],
|
std/[sequtils, options],
|
||||||
stew/shims/net,
|
stew/shims/net,
|
||||||
testutils/unittests,
|
testutils/unittests,
|
||||||
|
chronicles,
|
||||||
chronos,
|
chronos,
|
||||||
libp2p/peerid,
|
libp2p/peerid,
|
||||||
libp2p/crypto/crypto,
|
libp2p/crypto/crypto,
|
||||||
|
@ -4,6 +4,7 @@ import
|
|||||||
std/[options, sequtils],
|
std/[options, sequtils],
|
||||||
stew/shims/net as stewNet,
|
stew/shims/net as stewNet,
|
||||||
testutils/unittests,
|
testutils/unittests,
|
||||||
|
chronicles,
|
||||||
json_rpc/rpcserver,
|
json_rpc/rpcserver,
|
||||||
json_rpc/rpcclient,
|
json_rpc/rpcclient,
|
||||||
eth/keys,
|
eth/keys,
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
import
|
import
|
||||||
std/[options, tables],
|
std/[options, tables],
|
||||||
testutils/unittests,
|
testutils/unittests,
|
||||||
|
chronicles,
|
||||||
chronos,
|
chronos,
|
||||||
libp2p/crypto/crypto
|
libp2p/crypto/crypto
|
||||||
import
|
import
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
import
|
import
|
||||||
testutils/unittests,
|
testutils/unittests,
|
||||||
|
chronicles,
|
||||||
chronos,
|
chronos,
|
||||||
libp2p/crypto/crypto
|
libp2p/crypto/crypto
|
||||||
import
|
import
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
import
|
import
|
||||||
std/options,
|
std/options,
|
||||||
testutils/unittests,
|
testutils/unittests,
|
||||||
|
chronicles,
|
||||||
chronos,
|
chronos,
|
||||||
libp2p/crypto/crypto
|
libp2p/crypto/crypto
|
||||||
import
|
import
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
import
|
import
|
||||||
stew/shims/net as stewNet,
|
stew/shims/net as stewNet,
|
||||||
testutils/unittests,
|
testutils/unittests,
|
||||||
|
chronicles,
|
||||||
chronos,
|
chronos,
|
||||||
libp2p/crypto/crypto
|
libp2p/crypto/crypto
|
||||||
import
|
import
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
import
|
import
|
||||||
stew/shims/net as stewNet,
|
stew/shims/net as stewNet,
|
||||||
testutils/unittests,
|
testutils/unittests,
|
||||||
|
chronicles,
|
||||||
chronos,
|
chronos,
|
||||||
libp2p/crypto/crypto,
|
libp2p/crypto/crypto,
|
||||||
libp2p/switch
|
libp2p/switch
|
||||||
|
@ -45,7 +45,7 @@ Setting up a `wakunode2` on the smallest [digital ocean](https://docs.digitaloce
|
|||||||
make test2
|
make test2
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also run a specific test (and alter compile options as you want):
|
To run a specific test.
|
||||||
```bash
|
```bash
|
||||||
# Get a shell with the right environment variables set
|
# Get a shell with the right environment variables set
|
||||||
./env.sh bash
|
./env.sh bash
|
||||||
@ -53,6 +53,17 @@ You can also run a specific test (and alter compile options as you want):
|
|||||||
nim c -r ./tests/v2/test_waku_filter.nim
|
nim c -r ./tests/v2/test_waku_filter.nim
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You can also alter compile options. For example, if you want a less verbose output you can do the following. For more, refer to the [compiler flags](https://nim-lang.org/docs/nimc.html#compiler-usage) and [chronicles documentation](https://github.com/status-im/nim-chronicles#compile-time-configuration).
|
||||||
|
|
||||||
|
```bash
|
||||||
|
nim c -r -d:chronicles_log_level=WARN --verbosity=0 --hints=off ./tests/v2/test_waku_filter.nim
|
||||||
|
```
|
||||||
|
|
||||||
|
You may also want to change the `outdir` to a folder ignored by git.
|
||||||
|
```bash
|
||||||
|
nim c -r -d:chronicles_log_level=WARN --verbosity=0 --hints=off --outdir=build ./tests/v2/test_waku_filter.nim
|
||||||
|
```
|
||||||
|
|
||||||
### Waku v2 Protocol Example
|
### Waku v2 Protocol Example
|
||||||
|
|
||||||
There is a more basic example, more limited in features and configuration than
|
There is a more basic example, more limited in features and configuration than
|
||||||
|
Loading…
x
Reference in New Issue
Block a user