mirror of https://github.com/waku-org/nwaku.git
chore(rln-relay): move rln-relay test suite to own dir (#1587)
* chore(rln-relay): move rln-relay test suite to own dir * fix(tests): rename test_utils to utils
This commit is contained in:
parent
92546bd997
commit
699a35217b
|
@ -48,7 +48,6 @@ import
|
||||||
./v2/test_utils_peers,
|
./v2/test_utils_peers,
|
||||||
./v2/test_message_cache,
|
./v2/test_message_cache,
|
||||||
./v2/test_peer_manager,
|
./v2/test_peer_manager,
|
||||||
./v2/test_web3, # TODO remove it when rln-relay tests get finalized
|
|
||||||
./v2/test_peer_storage,
|
./v2/test_peer_storage,
|
||||||
./v2/test_waku_keepalive,
|
./v2/test_waku_keepalive,
|
||||||
./v2/test_namespacing_utils,
|
./v2/test_namespacing_utils,
|
||||||
|
@ -94,10 +93,10 @@ import ./all_tests_wakubridge
|
||||||
|
|
||||||
when defined(rln):
|
when defined(rln):
|
||||||
import
|
import
|
||||||
./v2/test_waku_rln_relay,
|
./v2/waku_rln_relay/test_waku_rln_relay,
|
||||||
./v2/test_wakunode_rln_relay,
|
./v2/waku_rln_relay/test_wakunode_rln_relay,
|
||||||
./v2/test_rln_group_manager_onchain,
|
./v2/waku_rln_relay/test_rln_group_manager_onchain,
|
||||||
./v2/test_rln_group_manager_static
|
./v2/waku_rln_relay/test_rln_group_manager_static
|
||||||
|
|
||||||
# Waku swap test suite
|
# Waku swap test suite
|
||||||
import
|
import
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
{.used.}
|
|
||||||
|
|
||||||
import web3
|
|
||||||
proc web3Test() =
|
|
||||||
var web3: Web3 # an identifier from web3 package
|
|
||||||
|
|
||||||
web3Test()
|
|
|
@ -18,14 +18,14 @@ import
|
||||||
libp2p/crypto/crypto,
|
libp2p/crypto/crypto,
|
||||||
eth/keys
|
eth/keys
|
||||||
import
|
import
|
||||||
../../waku/v2/protocol/waku_rln_relay/protocol_types,
|
../../../waku/v2/protocol/waku_rln_relay/protocol_types,
|
||||||
../../waku/v2/protocol/waku_rln_relay/constants,
|
../../../waku/v2/protocol/waku_rln_relay/constants,
|
||||||
../../waku/v2/protocol/waku_rln_relay/contract,
|
../../../waku/v2/protocol/waku_rln_relay/contract,
|
||||||
../../waku/v2/protocol/waku_rln_relay/rln,
|
../../../waku/v2/protocol/waku_rln_relay/rln,
|
||||||
../../waku/v2/protocol/waku_rln_relay/conversion_utils,
|
../../../waku/v2/protocol/waku_rln_relay/conversion_utils,
|
||||||
../../waku/v2/protocol/waku_rln_relay/group_manager/on_chain/group_manager,
|
../../../waku/v2/protocol/waku_rln_relay/group_manager/on_chain/group_manager,
|
||||||
./testlib/common,
|
../testlib/common,
|
||||||
./test_utils
|
./utils
|
||||||
|
|
||||||
proc generateCredentials(rlnInstance: ptr RLN): IdentityCredential =
|
proc generateCredentials(rlnInstance: ptr RLN): IdentityCredential =
|
||||||
let credRes = membershipKeyGen(rlnInstance)
|
let credRes = membershipKeyGen(rlnInstance)
|
|
@ -9,10 +9,10 @@ import
|
||||||
testutils/unittests,
|
testutils/unittests,
|
||||||
stew/results,
|
stew/results,
|
||||||
options,
|
options,
|
||||||
../../waku/v2/protocol/waku_rln_relay/protocol_types,
|
../../../waku/v2/protocol/waku_rln_relay/protocol_types,
|
||||||
../../waku/v2/protocol/waku_rln_relay/rln,
|
../../../waku/v2/protocol/waku_rln_relay/rln,
|
||||||
../../waku/v2/protocol/waku_rln_relay/conversion_utils,
|
../../../waku/v2/protocol/waku_rln_relay/conversion_utils,
|
||||||
../../waku/v2/protocol/waku_rln_relay/group_manager/static/group_manager
|
../../../waku/v2/protocol/waku_rln_relay/group_manager/static/group_manager
|
||||||
|
|
||||||
import
|
import
|
||||||
stew/shims/net,
|
stew/shims/net,
|
|
@ -11,10 +11,10 @@ import
|
||||||
stint,
|
stint,
|
||||||
libp2p/crypto/crypto
|
libp2p/crypto/crypto
|
||||||
import
|
import
|
||||||
../../waku/v2/protocol/waku_message,
|
../../../waku/v2/protocol/waku_message,
|
||||||
../../waku/v2/protocol/waku_rln_relay,
|
../../../waku/v2/protocol/waku_rln_relay,
|
||||||
../../waku/v2/protocol/waku_keystore,
|
../../../waku/v2/protocol/waku_keystore,
|
||||||
./testlib/common
|
../testlib/common
|
||||||
|
|
||||||
const RlnRelayPubsubTopic = "waku/2/rlnrelay/proto"
|
const RlnRelayPubsubTopic = "waku/2/rlnrelay/proto"
|
||||||
const RlnRelayContentTopic = "waku/2/rlnrelay/proto"
|
const RlnRelayContentTopic = "waku/2/rlnrelay/proto"
|
|
@ -14,12 +14,12 @@ import
|
||||||
libp2p/protocols/pubsub/pubsub,
|
libp2p/protocols/pubsub/pubsub,
|
||||||
eth/keys
|
eth/keys
|
||||||
import
|
import
|
||||||
../../waku/v2/node/waku_node,
|
../../../waku/v2/node/waku_node,
|
||||||
../../waku/v2/protocol/waku_message,
|
../../../waku/v2/protocol/waku_message,
|
||||||
../../waku/v2/protocol/waku_rln_relay,
|
../../../waku/v2/protocol/waku_rln_relay,
|
||||||
../../waku/v2/protocol/waku_keystore,
|
../../../waku/v2/protocol/waku_keystore,
|
||||||
../../waku/v2/utils/peers,
|
../../../waku/v2/utils/peers,
|
||||||
./testlib/waku2
|
../testlib/waku2
|
||||||
|
|
||||||
from std/times import epochTime
|
from std/times import epochTime
|
||||||
|
|
Loading…
Reference in New Issue