diff --git a/lib/network/rpc/sio-stream.ts b/lib/network/rpc/sio-stream.ts index 3cf3596e3..6d1ed1251 100644 --- a/lib/network/rpc/sio-stream.ts +++ b/lib/network/rpc/sio-stream.ts @@ -341,7 +341,6 @@ class SIOStreamSocket { encodedObj = {}; // user objects are simple flat objects and we want to // copy all their properties - for (const k in arg) { encodedObj[k] = this.encodeStreams(arg[k]); } @@ -415,7 +414,6 @@ class SIOStreamSocket { decodedObj = {}; // user objects are simple flat objects and we want to // copy all their properties - for (const k in arg) { decodedObj[k] = this.decodeStreams(arg[k]); } diff --git a/package.json b/package.json index 45fb97e46..b43c5216a 100644 --- a/package.json +++ b/package.json @@ -89,7 +89,7 @@ "build": "tsc", "prepare": "yarn build", "ft_test": "jest tests/functional --testTimeout=120000 --forceExit", - "coverage": "nyc --clean jest tests --coverage --testTimeout=120000 --forceExit", + "coverage": "export NODE_OPTIONS=\"--tls-max-v1.2\" && nyc --clean jest tests --coverage --testTimeout=120000 --forceExit", "build_doc": "cd documentation/listingAlgos/pics; dot -Tsvg delimiterStateChart.dot > delimiterStateChart.svg; dot -Tsvg delimiterMasterV0StateChart.dot > delimiterMasterV0StateChart.svg; dot -Tsvg delimiterVersionsStateChart.dot > delimiterVersionsStateChart.svg" }, "private": true, diff --git a/tests/unit/policyEvaluator/RequestContext.spec.js b/tests/unit/policyEvaluator/RequestContext.spec.js index 0cc368484..12482091f 100644 --- a/tests/unit/policyEvaluator/RequestContext.spec.js +++ b/tests/unit/policyEvaluator/RequestContext.spec.js @@ -172,4 +172,4 @@ describe('RequestContext', () => { const ssoRC = new RequestContext(...ssoParams); assert.strictEqual(ssoRC.getResource(), 'arn:scality:sso:::general-resource/specific-resource'); }); -}); \ No newline at end of file +});