From a45ca3308ea4e3ec0f6682c070642e78f07c1e16 Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Thu, 18 May 2023 13:45:31 +0100 Subject: [PATCH] chore(): expect either of errors --- test/unified-margin/private.write.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unified-margin/private.write.test.ts b/test/unified-margin/private.write.test.ts index 846eda3..06a55af 100644 --- a/test/unified-margin/private.write.test.ts +++ b/test/unified-margin/private.write.test.ts @@ -185,8 +185,8 @@ describe('Private Unified Margin REST API POST Endpoints', () => { transfer_id: 'testtransfer', }), ).toMatchObject({ - ret_code: API_ERROR_CODE.INVALID_API_KEY_OR_PERMISSIONS, - ret_msg: 'invalid api_key', + // seems to fluctuate between these two errors + ret_code: /^10003|10001$/, }); }); });