8000 test(store): give the PBKDF2 vector more time by aeitwoen · Pull Request #202 · agntn/keys · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions test/utils/store.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ const privateKey = hex.decode(pbkdf2Vector.privateKey);
const cheap = { kdf: "scrypt", n: 2, r: 8, p: 1 } as const;

describe("keystore decrypt", () => {
it.each(storeVectors)("opens the $name keystore", ({ keystore, password, privateKey }) => {
expect(hex.encode(decrypt(keystore, password))).toBe(privateKey);
});
it.each(storeVectors)(
"opens the $name keystore",
{ timeout: 30_000 },
({ keystore, password, privateKey }) => {
expect(hex.encode(decrypt(keystore, password))).toBe(privateKey);
},
);

it("reads the file as JSON text too", () => {
const { keystore, password, privateKey } = ethersVector;
Expand Down
Loading
0