fix rebase, formatting

This commit is contained in:
Eric 2025-01-22 16:25:52 +11:00
parent ce5c146758
commit d116878f17
No known key found for this signature in database
3 changed files with 29 additions and 25 deletions

View File

@ -60,24 +60,28 @@ asyncchecksuite "Command line interface":
await node.stop(expectedErrCode = 1) await node.stop(expectedErrCode = 1)
test "suggests downloading of circuit files when persistence is enabled without accessible wasm file": test "suggests downloading of circuit files when persistence is enabled without accessible wasm file":
let node = await startCodex(@[ let node = await startCodex(
"persistence",ß @[
"--eth-provider=" & "http://127.0.0.1:" & $HardhatPort, "persistence",
"prover", "--eth-provider=" & "http://127.0.0.1:" & $HardhatPort,
marketplaceArg, "prover",
"--circom-r1cs=tests/circuits/fixtures/proof_main.r1cs" marketplaceArg,
]) "--circom-r1cs=tests/circuits/fixtures/proof_main.r1cs"
]
)
await node.waitUntilOutput(expectedDownloadInstruction) await node.waitUntilOutput(expectedDownloadInstruction)
await node.stop(expectedErrCode = 1) await node.stop(expectedErrCode = 1)
test "suggests downloading of circuit files when persistence is enabled without accessible zkey file": test "suggests downloading of circuit files when persistence is enabled without accessible zkey file":
let node = await startCodex(@[ let node = await startCodex(
"persistence", @[
"--eth-provider=" & "http://127.0.0.1:" & $HardhatPort, "persistence",
"prover", "--eth-provider=" & "http://127.0.0.1:" & $HardhatPort,
marketplaceArg, "prover",
"--circom-r1cs=tests/circuits/fixtures/proof_main.r1cs", marketplaceArg,
"--circom-wasm=tests/circuits/fixtures/proof_main.wasm" "--circom-r1cs=tests/circuits/fixtures/proof_main.r1cs",
]) "--circom-wasm=tests/circuits/fixtures/proof_main.wasm"
]
)
await node.waitUntilOutput(expectedDownloadInstruction) await node.waitUntilOutput(expectedDownloadInstruction)
await node.stop(expectedErrCode = 1) await node.stop(expectedErrCode = 1)

View File

@ -87,7 +87,7 @@ twonodessuite "REST API":
var responseBefore = client1.requestStorageRaw( var responseBefore = client1.requestStorageRaw(
cid, duration, reward, proofProbability, collateral, expiry, nodes.uint, cid, duration, reward, proofProbability, collateral, expiry, nodes.uint,
tolerance.uint, tolerance.uint
) )
check responseBefore.status == "400 Bad Request" check responseBefore.status == "400 Bad Request"
@ -108,7 +108,7 @@ twonodessuite "REST API":
var responseBefore = client1.requestStorageRaw( var responseBefore = client1.requestStorageRaw(
cid, duration, reward, proofProbability, collateral, expiry, nodes.uint, cid, duration, reward, proofProbability, collateral, expiry, nodes.uint,
tolerance.uint, tolerance.uint
) )
check responseBefore.status == "400 Bad Request" check responseBefore.status == "400 Bad Request"
@ -131,7 +131,7 @@ twonodessuite "REST API":
var responseBefore = client1.requestStorageRaw( var responseBefore = client1.requestStorageRaw(
cid, duration, reward, proofProbability, collateral, expiry, nodes.uint, cid, duration, reward, proofProbability, collateral, expiry, nodes.uint,
tolerance.uint, tolerance.uint
) )
check responseBefore.status == "400 Bad Request" check responseBefore.status == "400 Bad Request"
@ -153,7 +153,7 @@ twonodessuite "REST API":
var responseBefore = client1.requestStorageRaw( var responseBefore = client1.requestStorageRaw(
cid, duration, reward, proofProbability, collateral, expiry, nodes.uint, cid, duration, reward, proofProbability, collateral, expiry, nodes.uint,
tolerance.uint, tolerance.uint
) )
check responseBefore.status == "200 OK" check responseBefore.status == "200 OK"
@ -200,7 +200,7 @@ twonodessuite "REST API":
let headers = newHttpHeaders( let headers = newHttpHeaders(
{ {
"Content-Type": "text/plain", "Content-Type": "text/plain",
"Content-Disposition": "attachment; filename=\"example.txt\"", "Content-Disposition": "attachment; filename=\"example.txt\""
} }
) )
let uploadResponse = client1.uploadRaw("some file contents", headers) let uploadResponse = client1.uploadRaw("some file contents", headers)
@ -228,7 +228,7 @@ twonodessuite "REST API":
let headers = newHttpHeaders( let headers = newHttpHeaders(
{ {
"Content-Disposition": "attachment; filename=\"example.txt\"", "Content-Disposition": "attachment; filename=\"example.txt\"",
"Content-Type": "text/plain", "Content-Type": "text/plain"
} }
) )

View File

@ -39,7 +39,7 @@ proc run() {.async.} =
# Echoes stdout from the integration test file process. Codex process logs can # Echoes stdout from the integration test file process. Codex process logs can
# also be output if a test uses a multinodesuite, requires CodexConfig.debug # also be output if a test uses a multinodesuite, requires CodexConfig.debug
# to be enabled # to be enabled
const debugCodexNodes = false const debugCodexNodes = true
# Shows test status updates at time intervals. Useful for running locally with # Shows test status updates at time intervals. Useful for running locally with
# active terminal interaction. Set to false for unattended runs, eg CI. # active terminal interaction. Set to false for unattended runs, eg CI.
const showContinuousStatusUpdates = true const showContinuousStatusUpdates = true
@ -51,8 +51,8 @@ proc run() {.async.} =
fgBlack, styleBright, "\n\n ", styleUnderscore, fgBlack, styleBright, "\n\n ", styleUnderscore,
"ADDITIONAL LOGGING AVAILABILE\n\n", resetStyle, bgWhite, fgBlack, styleBright, "ADDITIONAL LOGGING AVAILABILE\n\n", resetStyle, bgWhite, fgBlack, styleBright,
""" """
More integration test harness logs available by running with More integration test harness logs available by running with
-d:chronicles_log_level=TRACE, eg:""", -d:chronicles_log_level=TRACE, eg:""",
resetStyle, bgWhite, fgBlack, resetStyle, bgWhite, fgBlack,
"\n\n nim c -d:chronicles_log_level=TRACE -r ./testIntegration.nim\n\n" "\n\n nim c -d:chronicles_log_level=TRACE -r ./testIntegration.nim\n\n"
@ -63,7 +63,7 @@ More integration test harness logs available by running with
""" """
For integration test suites that are multinodesuites, or for For integration test suites that are multinodesuites, or for
tests launching a CodexProcess, ensure that CodexConfig.debug tests launching a CodexProcess, ensure that CodexConfig.debug
is enabled. is enabled to see chronicles logs.
""" """
let manager = TestManager.new( let manager = TestManager.new(