mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-09 08:53:10 +00:00
Activate debug
This commit is contained in:
parent
6b5467c602
commit
452a8e6f2f
@ -8,6 +8,7 @@ import ../checktest
|
||||
import ./codexprocess
|
||||
import ./nodeprocess
|
||||
import ../examples
|
||||
import ./hardhatprocess
|
||||
|
||||
asyncchecksuite "Command line interface":
|
||||
let key = "4242424242424242424242424242424242424242424242424242424242424242"
|
||||
@ -26,23 +27,27 @@ asyncchecksuite "Command line interface":
|
||||
if not args.anyIt(it.contains("--data-dir")):
|
||||
args.add("--data-dir=" & tmpDataDir)
|
||||
|
||||
return await CodexProcess.startNode(args, debug = false, "cli-test-node")
|
||||
return await CodexProcess.startNode(args, debug = true, "cli-test-node")
|
||||
|
||||
test "complains when persistence is enabled without ethereum account":
|
||||
# let hardhat = await HardhatProcess.startNode(@[], true, "hardhat")
|
||||
let node = await startCodex(@["persistence"])
|
||||
|
||||
defer:
|
||||
await node.stop()
|
||||
# await hardhat.stop()
|
||||
|
||||
await node.waitUntilOutput("Persistence enabled, but no Ethereum account was set")
|
||||
|
||||
test "complains when ethereum private key file has wrong permissions":
|
||||
let unsafeKeyFile = genTempPath("", "")
|
||||
discard unsafeKeyFile.writeFile(key, 0o666)
|
||||
# let hardhat = await HardhatProcess.startNode(@[], true, "hardhat")
|
||||
let node = await startCodex(@["persistence", "--eth-private-key=" & unsafeKeyFile])
|
||||
|
||||
defer:
|
||||
await node.stop()
|
||||
# await hardhat.stop()
|
||||
discard removeFile(unsafeKeyFile)
|
||||
|
||||
await node.waitUntilOutput(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user