Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix pummel test failures #6012

Closed
wants to merge 1 commit into from
Closed
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
5 changes: 3 additions & 2 deletions test/pummel/test-crypto-dh.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';
var common = require('../common');
var assert = require('assert');
const common = require('../common');
const assert = require('assert');
const crypto = require('crypto');

if (!common.hasCrypto) {
console.log('1..0 # Skipped: node compiled without OpenSSL.');
Expand Down
2 changes: 1 addition & 1 deletion test/pummel/test-dtrace-jsstack.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if (os.type() != 'SunOS') {
var frames = [ 'stalloogle', 'bagnoogle', 'doogle' ];

var stalloogle = function(str) {
expected = str;
global.expected = str;
os.loadavg();
};

Expand Down
12 changes: 6 additions & 6 deletions test/pummel/test-net-throttle.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
'use strict';
var common = require('../common');
var assert = require('assert');
var net = require('net');
const common = require('../common');
const assert = require('assert');
const net = require('net');

var N = 1024 * 1024;
var part_N = N / 3;
const N = 1024 * 1024;
const part_N = N / 3;
var chars_recved = 0;
var npauses = 0;

console.log('build big string');
body = 'C'.repeat(N);
const body = 'C'.repeat(N);

console.log('start server on port ' + common.PORT);

Expand Down