Skip to content

Commit 4486023

Browse files
chore: express tests should clean up encryptedPrivKeys.json
TICKET: WP-6096
1 parent d2830f2 commit 4486023

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

modules/express/encryptedPrivKeys.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

modules/express/test/unit/clientRoutes/externalSign.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ describe('External signer', () => {
9898
if (nock.isActive()) {
9999
nock.restore();
100100
}
101+
102+
// Clean up encryptedPrivKeys.json file if it exists
103+
const encryptedPrivKeysPath = 'encryptedPrivKeys.json';
104+
if (fs.existsSync(encryptedPrivKeysPath)) {
105+
fs.unlinkSync(encryptedPrivKeysPath);
106+
}
101107
});
102108

103109
it('should read an encrypted prv from signerFileSystemPath and pass it to coin.signTransaction', async () => {

0 commit comments

Comments
 (0)