fix for volatile test

This commit is contained in:
tiagosiebler
2022-10-23 11:06:49 +01:00
parent a7d4f630b3
commit c9aaf18c3a

View File

@@ -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$/,
});
});