mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-02-03 01:49:54 -05:00
default wallet refresh rate of 5000 ms, wait less time after make offer
This commit is contained in:
parent
0862caae47
commit
6c8c494f9f
@ -173,7 +173,7 @@ const TestConfig = {
|
|||||||
disputeWinner: DisputeResult.Winner.SELLER,
|
disputeWinner: DisputeResult.Winner.SELLER,
|
||||||
disputeReason: DisputeResult.Reason.PEER_WAS_LATE,
|
disputeReason: DisputeResult.Reason.PEER_WAS_LATE,
|
||||||
disputeSummary: "Seller is winner",
|
disputeSummary: "Seller is winner",
|
||||||
walletSyncPeriodMs: 7000, // TODO (woodser): auto adjust higher if using remote connection
|
walletSyncPeriodMs: 5000,
|
||||||
maxTimePeerNoticeMs: 5000,
|
maxTimePeerNoticeMs: 5000,
|
||||||
maxConcurrency: 14,
|
maxConcurrency: 14,
|
||||||
stopOnFailure: true
|
stopOnFailure: true
|
||||||
@ -1919,7 +1919,7 @@ async function executeTrade(ctx?: TradeContext): Promise<string> {
|
|||||||
ctx.offer = await makeOffer(ctx);
|
ctx.offer = await makeOffer(ctx);
|
||||||
expect(ctx.offer.getState()).toEqual("AVAILABLE");
|
expect(ctx.offer.getState()).toEqual("AVAILABLE");
|
||||||
ctx.offerId = ctx.offer.getId();
|
ctx.offerId = ctx.offer.getId();
|
||||||
await wait(ctx.maxTimePeerNoticeMs! + ctx.walletSyncPeriodMs! * 2);
|
await wait(ctx.maxTimePeerNoticeMs!);
|
||||||
} else {
|
} else {
|
||||||
ctx.offer = getOffer(await ctx.maker!.getMyOffers(ctx.assetCode!, ctx.direction), ctx.offerId!);
|
ctx.offer = getOffer(await ctx.maker!.getMyOffers(ctx.assetCode!, ctx.direction), ctx.offerId!);
|
||||||
if (!ctx.offer) {
|
if (!ctx.offer) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user