diff --git a/test/mjsunit/test-http-tls.js b/test/mjsunit/test-http-tls.js index 861b2812d1..2e5e4e84e1 100644 --- a/test/mjsunit/test-http-tls.js +++ b/test/mjsunit/test-http-tls.js @@ -21,9 +21,9 @@ var responses_sent = 0; var responses_recvd = 0; var body0 = ""; var body1 = ""; -var caPem = fs.cat(fixturesDir+"/test_ca.pem").wait(); -var certPem = fs.cat(fixturesDir+"/test_cert.pem").wait(); -var keyPem = fs.cat(fixturesDir+"/test_key.pem").wait(); +var caPem = fs.readFile(fixturesDir+"/test_ca.pem").wait(); +var certPem = fs.readFile(fixturesDir+"/test_cert.pem").wait(); +var keyPem = fs.readFile(fixturesDir+"/test_key.pem").wait(); var http_server=http.createServer(function (req, res) { diff --git a/test/mjsunit/test-tcp-tls.js b/test/mjsunit/test-tcp-tls.js index 9a47d5af1d..80f85d33b0 100644 --- a/test/mjsunit/test-tcp-tls.js +++ b/test/mjsunit/test-tcp-tls.js @@ -105,9 +105,9 @@ try { } if (have_tls) { - var caPem = fs.cat(fixturesDir+"/test_ca.pem").wait(); - var certPem = fs.cat(fixturesDir+"/test_cert.pem").wait(); - var keyPem = fs.cat(fixturesDir+"/test_key.pem").wait(); + var caPem = fs.readFile(fixturesDir+"/test_ca.pem").wait(); + var certPem = fs.readFile(fixturesDir+"/test_cert.pem").wait(); + var keyPem = fs.readFile(fixturesDir+"/test_key.pem").wait(); /* All are run at once, so run on different ports */ tlsTest(20443, "localhost", caPem, keyPem, certPem);