Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion demo/server.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright IBM Corp. 2012,2016. All Rights Reserved.
// Node module: foreman
// Node module: procfiled
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

Expand Down
2 changes: 1 addition & 1 deletion forward.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright IBM Corp. 2012,2016. All Rights Reserved.
// Node module: foreman
// Node module: procfiled
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

Expand Down
2 changes: 1 addition & 1 deletion lib/proc.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function start(procs, requirements, envs, portarg, emitter){
};

p.env.PORT = port + j + k * 100;
p.env.FOREMAN_WORKER_NAME = p.env.FOREMAN_WORKER_NAME || key + "." + (i + 1);
p.env.PROCFILED_WORKER_NAME = p.env.PROCFILED_WORKER_NAME || key + "." + (i + 1);

run(key + "." + (i + 1), p, emitter);

Expand Down
2 changes: 1 addition & 1 deletion nf.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ program
}
envl.push({ key: "PORT", value: conf.port });
envl.push({
key: "FOREMAN_WORKER_NAME",
key: "PROCFILED_WORKER_NAME",
value: conf.process + "." + conf.number,
});

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
},
"preferGlobal": true,
"devDependencies": {
"chai": "~1.9.1",
"jshint": "^2.6.3",
"rimraf": "~2.2.8",
"tap": "^0.7.1"
"chai": "^4.3.0",
"jshint": "^2.13.0",
"rimraf": "^5.0.0",
"tap": "^18.0.0"
}
}
2 changes: 1 addition & 1 deletion proxy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright IBM Corp. 2012,2016. All Rights Reserved.
// Node module: foreman
// Node module: procfiled
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

Expand Down
4 changes: 2 additions & 2 deletions test/console-output.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ c.log('a key', null, 'a log message');
assertLogged('log', /^a log message$/);
c.raw = false;

assert.lengthOf(c.trim('a very long string this is!', 5), 6);
assert.equal(c.trim('a very long string this is!', 5).length, 6);

function makeLogger(collector) {
return function() {
Expand All @@ -65,7 +65,7 @@ function assertLogged(logName, pattern) {
var actual = logs[logName][logs[logName].length - 1];

Object.keys(logs).forEach(function (log) {
assert.lengthOf(logs[log], logName === log ? 1 : 0);
assert.equal(logs[log].length, logName === log ? 1 : 0);
});

assert.match(actual, pattern);
Expand Down
4 changes: 2 additions & 2 deletions test/console-trim.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ var blue = colors.blue('blue');
var long = 'Roses are red, Violets are blue, this string is long, and should be trimmed, too!';
var colorLong = long.replace('red', red).replace('blue', blue);

assert.lengthOf(long, 81);
assert.lengthOf(colorLong, 99);
assert.equal(long.length, 81);
assert.equal(colorLong.length, 99);
assert.equal(Console.trim(colorLong, 50), Console.trim(long, 50));

assert.equal(Console.trim(colorLong, long.length), colorLong,
Expand Down
Loading