Skip to content

Commit f675b56

Browse files
committed
shorter payload
1 parent a959c18 commit f675b56

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/command-line-test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,12 +353,13 @@ describe('WebPageTest Command Line', function() {
353353
});
354354

355355
it('gets a test with long custom metrics script then returns API url and payload with custom metrics data', function (done) {
356-
let script = '"[example]\n\\\\' + 'X'.repeat(10000) + '\nreturn 1;"'
356+
let script = '"[example]\n\\\\' + 'X'.repeat(6000) + '\nreturn 1;"'
357+
357358
exec(mock('test http://foobar.com --http_method POST --custom ' + script), function (err, data) {
358359
if (err) return done(err);
359360
data = JSON.parse(data);
360361
assert.equal(data.url, wptServer + 'runtest.php');
361-
assert.equal(data.form.length, 10089);
362+
assert.equal(data.form.length, 6077);
362363
done();
363364
});
364365
});

0 commit comments

Comments
 (0)