mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-02-09 02:58:26 -05:00
rename trade phase DEPOSIT_CONFIRMED to DEPOSIT_UNLOCKED
This commit is contained in:
parent
ffab7d0373
commit
9d84779a05
@ -987,14 +987,14 @@ test("Can complete a trade", async () => {
|
|||||||
// alice notified to send payment
|
// alice notified to send payment
|
||||||
await wait(TestConfig.maxWalletStartupMs + TestConfig.walletSyncPeriodMs * 2);
|
await wait(TestConfig.maxWalletStartupMs + TestConfig.walletSyncPeriodMs * 2);
|
||||||
fetchedTrade = await alice.getTrade(trade.getTradeId());
|
fetchedTrade = await alice.getTrade(trade.getTradeId());
|
||||||
expect(fetchedTrade.getIsDepositConfirmed()).toBe(true);
|
expect(fetchedTrade.getIsDepositUnlocked()).toBe(true);
|
||||||
expect(fetchedTrade.getPhase()).toEqual("DEPOSIT_CONFIRMED"); // TODO (woodser): rename to DEPOSIT_UNLOCKED, have phase for when deposit txs confirm?
|
expect(fetchedTrade.getPhase()).toEqual("DEPOSIT_UNLOCKED");
|
||||||
fetchedTrade = await bob.getTrade(trade.getTradeId());
|
fetchedTrade = await bob.getTrade(trade.getTradeId());
|
||||||
expect(fetchedTrade.getIsDepositConfirmed()).toBe(true);
|
expect(fetchedTrade.getIsDepositUnlocked()).toBe(true);
|
||||||
expect(fetchedTrade.getPhase()).toEqual("DEPOSIT_CONFIRMED");
|
expect(fetchedTrade.getPhase()).toEqual("DEPOSIT_UNLOCKED");
|
||||||
|
|
||||||
// alice indicates payment is sent
|
// alice indicates payment is sent
|
||||||
HavenoUtils.log(1, "Alice confirming payment started");
|
HavenoUtils.log(1, "Alice confirming payment sent");
|
||||||
await alice.confirmPaymentStarted(trade.getTradeId());
|
await alice.confirmPaymentStarted(trade.getTradeId());
|
||||||
fetchedTrade = await alice.getTrade(trade.getTradeId());
|
fetchedTrade = await alice.getTrade(trade.getTradeId());
|
||||||
expect(fetchedTrade.getPhase()).toEqual("PAYMENT_SENT");
|
expect(fetchedTrade.getPhase()).toEqual("PAYMENT_SENT");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user