From c9aaf18c3ac23b235a11902c9868d83e4e961de9 Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Sun, 23 Oct 2022 11:06:49 +0100 Subject: [PATCH] fix for volatile test --- test/inverse-futures/private.write.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/inverse-futures/private.write.test.ts b/test/inverse-futures/private.write.test.ts index b1de1c6..b327aaa 100644 --- a/test/inverse-futures/private.write.test.ts +++ b/test/inverse-futures/private.write.test.ts @@ -154,7 +154,8 @@ describe('Private Inverse-Futures REST API POST Endpoints', () => { take_profit: 50000, }) ).toMatchObject({ - ret_code: API_ERROR_CODE.POSITION_STATUS_NOT_NORMAL, + // seems to fluctuate between POSITION_STATUS_NOT_NORMAL and POSITION_IDX_NOT_MATCH_POSITION_MODE + ret_code: /^30013|30041$/, }); });