diff --git a/test/parallel/test-tls-getcipher.js b/test/parallel/test-tls-getcipher.js index dc3ff1bb39d5b7..27012ed49d12f5 100644 --- a/test/parallel/test-tls-getcipher.js +++ b/test/parallel/test-tls-getcipher.js @@ -6,13 +6,14 @@ if (!common.hasCrypto) const assert = require('assert'); const tls = require('tls'); +// import fixtures directly from its module +const fixtures = require('../common/fixtures'); -const fs = require('fs'); const cipher_list = ['AES128-SHA256', 'AES256-SHA256']; const cipher_version_pattern = /TLS|SSL/; const options = { - key: fs.readFileSync(`${common.fixturesDir}/keys/agent2-key.pem`), - cert: fs.readFileSync(`${common.fixturesDir}/keys/agent2-cert.pem`), + key: fixtures.readKey('agent2-key.pem'), + cert: fixtures.readKey('agent2-cert.pem'), ciphers: cipher_list.join(':'), honorCipherOrder: true };