Browse Source

change localhost to 127.0.0.1 because macs suck

v0.7.4-release
Ryan 16 years ago
parent
commit
f17ecf20be
  1. 6
      test/test-pingpong.js

6
test/test-pingpong.js

@ -12,7 +12,7 @@ function onLoad() {
connection.close(); connection.close();
return; return;
} }
//stdout.write ("-"); stdout.print ("-");
if (/QUIT/.exec(data)) { if (/QUIT/.exec(data)) {
server.close(); server.close();
connection.close(); connection.close();
@ -24,7 +24,7 @@ function onLoad() {
socket = new Socket; socket = new Socket;
socket.onRead = function (data) { socket.onRead = function (data) {
//stdout.write("."); stdout.print (".");
assertEquals("PONG", data); assertEquals("PONG", data);
setTimeout(function() { setTimeout(function() {
count += 1; count += 1;
@ -43,7 +43,7 @@ function onLoad() {
assertEquals(N, count); assertEquals(N, count);
}; };
socket.connectTCP(12123, "localhost", function (status) { socket.connectTCP(12123, "127.0.0.1", function (status) {
if(status != 0) if(status != 0)
process.exit(1); process.exit(1);

Loading…
Cancel
Save