Skip to content

Commit

Permalink
[test] Don't hardcode socket path in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki committed Dec 9, 2011
1 parent d8b81dd commit 748380b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/worker-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});
Expand Down

0 comments on commit 748380b

Please sign in to comment.