Skip to content

Commit 77cefc2

Browse files
Update local-tests/tests/testUseEoaSessionSigsToRequestSingleResponse.ts
Co-authored-by: Daryl Collins <[email protected]> Signed-off-by: Anson <[email protected]>
1 parent d664472 commit 77cefc2

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

local-tests/tests/testUseEoaSessionSigsToRequestSingleResponse.ts

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,19 @@ export const testUseEoaSessionSigsToRequestSingleResponse = async (
1212
) => {
1313
const alice = await devEnv.createRandomPerson();
1414

15-
const eoaSessionSigs = await getEoaSessionSigs(devEnv, alice);
16-
17-
const res = await devEnv.litNodeClient.executeJs({
18-
sessionSigs: eoaSessionSigs,
19-
code: `(async () => {
20-
console.log('hello world')
21-
})();`,
22-
numResponsesRequired: 1,
23-
});
24-
25-
devEnv.releasePrivateKeyFromUser(alice);
26-
15+
try {
16+
const eoaSessionSigs = await getEoaSessionSigs(devEnv, alice);
17+
18+
const res = await devEnv.litNodeClient.executeJs({
19+
sessionSigs: eoaSessionSigs,
20+
code: `(async () => {
21+
console.log('hello world')
22+
})();`,
23+
numResponsesRequired: 1,
24+
});
25+
} finally {
26+
devEnv.releasePrivateKeyFromUser(alice);
27+
}
2728
console.log('res:', res);
2829

2930
// Expected output:

0 commit comments

Comments
 (0)