mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-01-23 21:21:20 -05:00
fix resolve disputes test so it completes
increase CI timeout to 60 minutes
This commit is contained in:
parent
5fbeae0a07
commit
e01eee18b6
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -8,7 +8,7 @@ on:
|
||||
|
||||
jobs:
|
||||
haveno-ts-e2e:
|
||||
timeout-minutes: 50
|
||||
timeout-minutes: 60
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
@ -1390,7 +1390,7 @@ test("Can resolve disputes (CI)", async () => {
|
||||
await executeTrades(ctxs);
|
||||
|
||||
// resolve disputes
|
||||
for (const config of ctxs) config.resolveDispute = true;
|
||||
for (const ctx of ctxs) ctx.resolveDispute = true;
|
||||
HavenoUtils.log(1, "Resolving disputes");
|
||||
await executeTrades(ctxs, {concurrentTrades: true}); // TODO: running in parallel doesn't test balances before and after, but this test takes ~10 minutes in sequence. use test weight config
|
||||
});
|
||||
@ -1738,8 +1738,9 @@ function tradeContextToString(ctx: TradeContext) {
|
||||
async function executeTrades(ctxs: TradeContext[], executionCtx?: TradeContext): Promise<string[]> {
|
||||
|
||||
// assign default execution context
|
||||
if (!executionCtx) executionCtx = Object.assign({}, TestConfig.trade);
|
||||
if (!executionCtx) executionCtx = {};
|
||||
if (executionCtx.concurrentTrades === undefined) executionCtx.concurrentTrades = ctxs.length > 1;
|
||||
Object.assign(executionCtx, TestConfig.trade, executionCtx);
|
||||
|
||||
// start mining if executing trades concurrently
|
||||
let miningStarted = executionCtx.concurrentTrades && await startMining();
|
||||
|
Loading…
Reference in New Issue
Block a user