Skip to content

Commit

Permalink
fix: test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
guru-web3 committed Feb 8, 2024
1 parent 454e164 commit 93e01ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 0 additions & 3 deletions packages/default/test/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
});
}
Expand Down Expand Up @@ -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(
Expand Down
7 changes: 5 additions & 2 deletions packages/default/test/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,7 @@ export const sharedTestCases = (mode, torusSP, storageLayer) => {
selectedServers: [1, 2, 3],
serverEndpoints,
serverPubKeys,
authSignatures: signatures,
});

{
Expand Down Expand Up @@ -849,7 +850,7 @@ export const sharedTestCases = (mode, torusSP, storageLayer) => {

sp.verifierName = "torus-test-health";
sp.verifierId = "[email protected]";
const { postboxkey } = await fetchPostboxKeyAndSigs({
const { postboxkey, signatures } = await fetchPostboxKeyAndSigs({
serviceProvider: sp,
verifierName: sp.verifierName,
verifierId: sp.verifierId,
Expand Down Expand Up @@ -882,6 +883,7 @@ export const sharedTestCases = (mode, torusSP, storageLayer) => {
inputTSSIndex: tssIndex,
newFactorPub,
newTSSIndex: 3,
authSignatures: signatures,
});
await tb.syncLocalMetadataTransitions();

Expand All @@ -906,7 +908,7 @@ export const sharedTestCases = (mode, torusSP, storageLayer) => {
const sp = customSP;
sp.verifierName = "torus-test-health";
sp.verifierId = "[email protected]";
const { postboxkey } = await fetchPostboxKeyAndSigs({
const { postboxkey, signatures } = await fetchPostboxKeyAndSigs({
serviceProvider: sp,
verifierName: sp.verifierName,
verifierId: sp.verifierId,
Expand Down Expand Up @@ -938,6 +940,7 @@ export const sharedTestCases = (mode, torusSP, storageLayer) => {
inputTSSIndex: tssIndex,
newFactorPub,
newTSSIndex: 3,
authSignatures: signatures,
});

await tb.syncLocalMetadataTransitions();
Expand Down

0 comments on commit 93e01ca

Please sign in to comment.