Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[test fix] use port number on windows

  • Loading branch information...
commit 238e0570b4900e18fbccebc407c3a46f0443bd91 1 parent 2b38aed
@AndreasMadsen authored
View
7 test/common.js
@@ -66,5 +66,10 @@
exports.copy = function (object) {
return exports.extend({}, object);
};
-
+
+ // test sockets
+ var isWin = process.platform === 'win32';
+ exports.outputSocket = isWin ? 9002 : common.temp('output');
+ exports.inputSocket = isWin ? 9001 : common.temp('input');
+
})();
View
4 test/watchers/interface.js
@@ -32,7 +32,7 @@
var client = this;
var requester = thintalk();
- requester.connect('TCP', common.temp('input'));
+ requester.connect('TCP', common.inputSocket);
requester.on('connect', function (remote) {
var reconnect = (!!prope);
@@ -62,7 +62,7 @@
});
}
});
- listener.listen('TCP', common.temp('output'));
+ listener.listen('TCP', common.outputSocket);
// When listener is ready start immortal
listener.once('listening', function () {
View
4 test/watchers/monitor.js
@@ -18,7 +18,7 @@
// Create RPC client
this.requester = thintalk();
- this.requester.connect('TCP', common.temp('output'));
+ this.requester.connect('TCP', common.outputSocket);
// Create RPC server
this.listener = thintalk({
@@ -77,7 +77,7 @@
// Start monitor server once connection is made
this.requester.once('connect', function (remote) {
- self.listener.listen('TCP', common.temp('input'));
+ self.listener.listen('TCP', common.inputSocket);
self.listener.once('listening', function () {
remote.pleaseConnect(function () {
Please sign in to comment.
Something went wrong with that request. Please try again.