From 92292c8394df98c179dcdf8bae13c52a43f78001 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 17 Feb 2010 14:00:53 -0800 Subject: [PATCH] Rename a few remaining fs.cat calls. --- test/mjsunit/test-http-tls.js | 6 +++--- test/mjsunit/test-tcp-tls.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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);