fix conflicting tests

This commit is contained in:
tiagosiebler
2022-11-12 18:05:50 +00:00
parent d3b2c65c22
commit a5fafbf468
2 changed files with 5 additions and 3 deletions

View File

@@ -73,7 +73,7 @@ describe('Private Contract REST API POST Endpoints', () => {
it('setAutoAddMargin()', async () => {
expect(
await api.setAutoAddMargin({
autoAddMargin: 0,
autoAddMargin: 1,
side: 'Buy',
symbol,
positionIdx: 1,
@@ -88,7 +88,7 @@ describe('Private Contract REST API POST Endpoints', () => {
expect(
await api.setMarginSwitch({
symbol,
tradeMode: 0,
tradeMode: 1,
buyLeverage: '5',
sellLeverage: '5',
})

View File

@@ -176,7 +176,9 @@ describe('Private Linear REST API POST Endpoints', () => {
margin: 5,
})
).toMatchObject({
ret_code: API_ERROR_CODE.ISOLATED_NOT_MODIFIED_LINEAR,
// ret_msg: '',
ret_code: API_ERROR_CODE.POSITION_SIZE_IS_ZERO,
// ret_code: API_ERROR_CODE.ISOLATED_NOT_MODIFIED_LINEAR,
});
});