From 93e01ca68bb5a4e3659f844976c0a2c4db8d370c Mon Sep 17 00:00:00 2001 From: guru-web3 <105355858+guru-web3@users.noreply.github.com> Date: Thu, 8 Feb 2024 15:28:19 +0530 Subject: [PATCH] fix: test cases --- packages/default/test/helpers.js | 3 --- packages/default/test/shared.js | 7 +++++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/default/test/helpers.js b/packages/default/test/helpers.js index 210d978fd..bba6014f9 100644 --- a/packages/default/test/helpers.js +++ b/packages/default/test/helpers.js @@ -47,8 +47,6 @@ export function getServiceProvider(params) { // this url has no effect as postbox key is passed // passing it just to satisfy direct auth checks. baseUrl: "http://localhost:3000", - web3AuthClientId: "test", - network: "mainnet", }, }); } @@ -180,7 +178,6 @@ export async function assignTssDkgKeys(opts) { for (let j = 0; j < maxTSSNonceToSimulate; j++) { const token = generateIdToken(verifierId); const extendedVerifierId = `${verifierId}\u0015${tssTag}\u0016${j}`; - console.log("extendedVerifierId", extendedVerifierId); const { serverEndpoints: sssEndpoints } = await serviceProvider.getSSSNodeDetails(); const retrieveSharesResponse = await serviceProvider.customAuthInstance.torus.retrieveShares( diff --git a/packages/default/test/shared.js b/packages/default/test/shared.js index 156d40e05..aeddb7d31 100644 --- a/packages/default/test/shared.js +++ b/packages/default/test/shared.js @@ -637,6 +637,7 @@ export const sharedTestCases = (mode, torusSP, storageLayer) => { selectedServers: [1, 2, 3], serverEndpoints, serverPubKeys, + authSignatures: signatures, }); { @@ -849,7 +850,7 @@ export const sharedTestCases = (mode, torusSP, storageLayer) => { sp.verifierName = "torus-test-health"; sp.verifierId = "test18@example.com"; - const { postboxkey } = await fetchPostboxKeyAndSigs({ + const { postboxkey, signatures } = await fetchPostboxKeyAndSigs({ serviceProvider: sp, verifierName: sp.verifierName, verifierId: sp.verifierId, @@ -882,6 +883,7 @@ export const sharedTestCases = (mode, torusSP, storageLayer) => { inputTSSIndex: tssIndex, newFactorPub, newTSSIndex: 3, + authSignatures: signatures, }); await tb.syncLocalMetadataTransitions(); @@ -906,7 +908,7 @@ export const sharedTestCases = (mode, torusSP, storageLayer) => { const sp = customSP; sp.verifierName = "torus-test-health"; sp.verifierId = "test18@example.com"; - const { postboxkey } = await fetchPostboxKeyAndSigs({ + const { postboxkey, signatures } = await fetchPostboxKeyAndSigs({ serviceProvider: sp, verifierName: sp.verifierName, verifierId: sp.verifierId, @@ -938,6 +940,7 @@ export const sharedTestCases = (mode, torusSP, storageLayer) => { inputTSSIndex: tssIndex, newFactorPub, newTSSIndex: 3, + authSignatures: signatures, }); await tb.syncLocalMetadataTransitions();