Skip to content

Commit

Permalink
test: fix test-run-metrics after broken refactor
Browse files Browse the repository at this point in the history
It was broken in f65aef4, which stopped passing the metrics arguments
(`runArgs`) to sl-run. With no `--metrics` arguments, no metrics are
reported, and the test started to fail.
  • Loading branch information
sam-github committed Feb 18, 2015
1 parent ae8febd commit 7d7acc4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/test-run-metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ var util = require('util');

tap.test('metrics', function(t) {
var plan = 1; // for internal
var runArgs = [];
var runArgs = [
'--cluster=1',
'--no-profile',
];

async.parallel([
startGraphite,
Expand All @@ -39,7 +42,7 @@ tap.test('metrics', function(t) {
function run() {
helper.runWithControlChannel(
require.resolve('./module-app'),
['--cluster=1', '--no-profile'],
runArgs,
onRequest);
}

Expand Down

0 comments on commit 7d7acc4

Please sign in to comment.