From 6eb84cc8ccf02f5462dfffe95bdd8ebce5dc1f40 Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Sun, 2 Apr 2023 11:00:17 +0100 Subject: [PATCH] fix(): more changes to consistent 5x tests --- test/contract/private.write.test.ts | 6 +++--- test/usdc/perpetual/private.write.test.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/contract/private.write.test.ts b/test/contract/private.write.test.ts index c917f29..2145a58 100644 --- a/test/contract/private.write.test.ts +++ b/test/contract/private.write.test.ts @@ -89,8 +89,8 @@ describe('Private Contract REST API POST Endpoints', () => { await api.setMarginSwitch({ symbol, tradeMode: 1, - buyLeverage: '10', - sellLeverage: '10', + buyLeverage: '5', + sellLeverage: '5', }) ).toMatchObject({ retCode: API_ERROR_CODE.CONTRACT_MARGIN_MODE_NOT_MODIFIED, @@ -116,7 +116,7 @@ describe('Private Contract REST API POST Endpoints', () => { }); it('setLeverage()', async () => { - expect(await api.setLeverage(symbol, '10', '10')).toMatchObject({ + expect(await api.setLeverage(symbol, '5', '5')).toMatchObject({ retCode: API_ERROR_CODE.CONTRACT_SET_LEVERAGE_NOT_MODIFIED, }); }); diff --git a/test/usdc/perpetual/private.write.test.ts b/test/usdc/perpetual/private.write.test.ts index d4f0646..37f485c 100644 --- a/test/usdc/perpetual/private.write.test.ts +++ b/test/usdc/perpetual/private.write.test.ts @@ -78,7 +78,7 @@ describe('Private USDC Perp REST API POST Endpoints', () => { }); it('setLeverage()', async () => { - expect(await api.setLeverage(symbol, '10')).toMatchObject({ + expect(await api.setLeverage(symbol, '5')).toMatchObject({ retCode: API_ERROR_CODE.LEVERAGE_NOT_MODIFIED, }); });