From 748380ba268c9ba5776336610d4151967cbbc794 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Ma=C5=82ecki?= Date: Thu, 8 Dec 2011 19:15:05 +0100 Subject: [PATCH] [test] Don't hardcode socket path in tests --- test/worker-test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/worker-test.js b/test/worker-test.js index 8dc71fab..fb59f728 100644 --- a/test/worker-test.js +++ b/test/worker-test.js @@ -15,8 +15,8 @@ vows.describe('forever/worker').addBatch({ var worker = new Worker({ sockPath: SOCKET_PATH }), reader = new nssocket.NsSocket(); - worker.start(function () { - reader.connect(path.join(SOCKET_PATH, 'worker.0.sock'), function () { + worker.start(function (err, sock) { + reader.connect(sock, function () { self.callback(null, reader); }); });