diff --git a/test/parallel/test-tls-client-getephemeralkeyinfo.js b/test/parallel/test-tls-client-getephemeralkeyinfo.js index 28c386b147ead1..3fbd081cabf2bb 100644 --- a/test/parallel/test-tls-client-getephemeralkeyinfo.js +++ b/test/parallel/test-tls-client-getephemeralkeyinfo.js @@ -8,9 +8,8 @@ const assert = require('assert'); const tls = require('tls'); const fs = require('fs'); -const key = fs.readFileSync(`${fixtures.fixturesDir}/keys/agent2-key.pem`); -const cert = fs.readFileSync(`${fixtures.fixturesDir}/keys/agent2-cert.pem`); - +const key = fixtures.readKey('agent2-key.pem'); +const cert = fixtures.readKey('agent2-cert.pem'); let ntests = 0; let nsuccess = 0;