Skip to content

Commit 76e61cb

Browse files
test: drop FIPS state restore at end of cipher/hash cache test
Each test runs in its own process so restoring the initial FIPS state is unnecessary. Signed-off-by: srikanth-karthi <[email protected]>
1 parent cdb03a0 commit 76e61cb

1 file changed

Lines changed: 2 additions & 14 deletions

File tree

test/parallel/test-crypto-ciphers-hashes-fips-cache.js

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,5 @@ for (const hash of hashesWithFips) {
7070
setFips(false);
7171
assert.strictEqual(getFips(), 0);
7272

73-
assert.deepStrictEqual(
74-
getCiphers(),
75-
ciphersWithoutFips,
76-
'getCiphers() should match pre-FIPS list after setFips(false)'
77-
);
78-
assert.deepStrictEqual(
79-
getHashes(),
80-
hashesWithoutFips,
81-
'getHashes() should match pre-FIPS list after setFips(false)'
82-
);
83-
84-
// Restore the original FIPS state.
85-
if (initialFips)
86-
setFips(true);
73+
assert.deepStrictEqual(getCiphers(), ciphersWithoutFips);
74+
assert.deepStrictEqual(getHashes(), hashesWithoutFips);

0 commit comments

Comments
 (0)