mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-12-01 03:26:45 -05:00
test waits for arbitrator to start idle wallet when buyer offline
This commit is contained in:
parent
6dfd38551b
commit
adb0f6a569
1 changed files with 2 additions and 1 deletions
|
|
@ -3008,7 +3008,8 @@ async function executeTrade(ctxP: Partial<TradeContext>): Promise<string> {
|
|||
ctx.isPaymentReceived = true;
|
||||
fetchedTrade = await ctx.getSeller().havenod!.getTrade(trade.getTradeId());
|
||||
expect(fetchedTrade.getPhase()).toEqual("PAYMENT_RECEIVED");
|
||||
await wait(ctx.walletSyncPeriodMs * 2); // buyer or arbitrator will sign and publish payout tx
|
||||
let isBuyerOffline = ctx.getBuyer().havenod === undefined;
|
||||
await wait((isBuyerOffline ? TestConfig.maxWalletStartupMs : 0) + ctx.walletSyncPeriodMs * 2); // buyer or arbitrator will sign and publish payout tx (arbitrator is idling)
|
||||
await testTradeState(await ctx.getSeller().havenod!.getTrade(trade.getTradeId()), {phase: ["PAYMENT_RECEIVED"], payoutState: ["PAYOUT_PUBLISHED", "PAYOUT_CONFIRMED", "PAYOUT_UNLOCKED", "PAYOUT_FINALIZED"], isCompleted: false, isPayoutPublished: true});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue