mirror of
https://github.com/status-im/nim-codex.git
synced 2025-01-10 19:06:28 +00:00
20bb5e5a38
* Sets timeout for codexclient httpClient. Adds reliable transfer test. * disable new test to check timeout setting in CI * restores new test * adds heartbeat log and logfile to ci output * fixes suite * fixes blocked output stream by switching to multinode fixture * new twonodessuite based on multinodesuite * Applies updated twonodessuite * removes heartbeat log * applies multinodesuite in testsales * applies multinodesuite in testmarketplace * fixes account fetch for host and client in testmarketplace * adds waitTillNextPeriod at end of marketplace test * Uses marketplacesuite in testmarketplace
35 lines
838 B
Nim
35 lines
838 B
Nim
import std/os
|
|
import std/macros
|
|
import pkg/questionable
|
|
import ./multinodes
|
|
import ./codexconfig
|
|
import ./codexprocess
|
|
import ./codexclient
|
|
import ./nodeconfigs
|
|
|
|
export codexclient
|
|
export multinodes
|
|
|
|
template twonodessuite*(name: string, body: untyped) =
|
|
multinodesuite name:
|
|
let twoNodesConfig {.inject, used.} = NodeConfigs(clients: CodexConfigs.init(nodes=2).some)
|
|
|
|
var node1 {.inject, used.}: CodexProcess
|
|
var node2 {.inject, used.}: CodexProcess
|
|
var client1 {.inject, used.}: CodexClient
|
|
var client2 {.inject, used.}: CodexClient
|
|
var account1 {.inject, used.}: Address
|
|
var account2 {.inject, used.}: Address
|
|
|
|
setup:
|
|
account1 = accounts[0]
|
|
account2 = accounts[1]
|
|
|
|
node1 = clients()[0]
|
|
node2 = clients()[1]
|
|
|
|
client1 = node1.client
|
|
client2 = node2.client
|
|
|
|
body
|