Browse Source

Rename a few remaining fs.cat calls.

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
92292c8394
  1. 6
      test/mjsunit/test-http-tls.js
  2. 6
      test/mjsunit/test-tcp-tls.js

6
test/mjsunit/test-http-tls.js

@ -21,9 +21,9 @@ var responses_sent = 0;
var responses_recvd = 0; var responses_recvd = 0;
var body0 = ""; var body0 = "";
var body1 = ""; var body1 = "";
var caPem = fs.cat(fixturesDir+"/test_ca.pem").wait(); var caPem = fs.readFile(fixturesDir+"/test_ca.pem").wait();
var certPem = fs.cat(fixturesDir+"/test_cert.pem").wait(); var certPem = fs.readFile(fixturesDir+"/test_cert.pem").wait();
var keyPem = fs.cat(fixturesDir+"/test_key.pem").wait(); var keyPem = fs.readFile(fixturesDir+"/test_key.pem").wait();
var http_server=http.createServer(function (req, res) { var http_server=http.createServer(function (req, res) {

6
test/mjsunit/test-tcp-tls.js

@ -105,9 +105,9 @@ try {
} }
if (have_tls) { if (have_tls) {
var caPem = fs.cat(fixturesDir+"/test_ca.pem").wait(); var caPem = fs.readFile(fixturesDir+"/test_ca.pem").wait();
var certPem = fs.cat(fixturesDir+"/test_cert.pem").wait(); var certPem = fs.readFile(fixturesDir+"/test_cert.pem").wait();
var keyPem = fs.cat(fixturesDir+"/test_key.pem").wait(); var keyPem = fs.readFile(fixturesDir+"/test_key.pem").wait();
/* All are run at once, so run on different ports */ /* All are run at once, so run on different ports */
tlsTest(20443, "localhost", caPem, keyPem, certPem); tlsTest(20443, "localhost", caPem, keyPem, certPem);

Loading…
Cancel
Save