From cd34add12deb30e0fb6a1c1edb27230f77f90a56 Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Wed, 28 Dec 2022 13:16:14 +0000 Subject: [PATCH] fix failing test --- test/usdc/options/private.write.test.ts | 5 ++++- test/usdc/perpetual/private.write.test.ts | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/usdc/options/private.write.test.ts b/test/usdc/options/private.write.test.ts index 194287e..fe3e758 100644 --- a/test/usdc/options/private.write.test.ts +++ b/test/usdc/options/private.write.test.ts @@ -135,7 +135,10 @@ describe('Private USDC Options REST API POST Endpoints', () => { it('setMarginMode()', async () => { expect(await api.setMarginMode('REGULAR_MARGIN')).toMatchObject( - successResponseObjectV3() + { + retCode: API_ERROR_CODE.SET_MARGIN_MODE_FAILED_USDC, + } + // successResponseObjectV3() ); }); diff --git a/test/usdc/perpetual/private.write.test.ts b/test/usdc/perpetual/private.write.test.ts index 9eaf4ba..f70b6ee 100644 --- a/test/usdc/perpetual/private.write.test.ts +++ b/test/usdc/perpetual/private.write.test.ts @@ -73,7 +73,6 @@ describe('Private USDC Perp REST API POST Endpoints', () => { expect(await api.setMarginMode('REGULAR_MARGIN')).toMatchObject( { retCode: API_ERROR_CODE.SET_MARGIN_MODE_FAILED_USDC, - retMsg: '', } // successResponseObjectV3() );