Skip to content

Commit

Permalink
Fix deprecation warning (#665)
Browse files Browse the repository at this point in the history
  • Loading branch information
geek committed Jan 12, 2017
1 parent 68f4f9e commit ffe0618
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/cli.js
Expand Up @@ -623,7 +623,7 @@ describe('CLI', () => {
let filename;
beforeEach((done) => {

filename = Path.join(Os.tmpDir(), [Date.now(), process.pid, Crypto.randomBytes(8).toString('hex')].join('-'));
filename = Path.join(Os.tmpdir(), [Date.now(), process.pid, Crypto.randomBytes(8).toString('hex')].join('-'));
done();
});

Expand Down
1 change: 1 addition & 0 deletions test/leaks.js
Expand Up @@ -73,6 +73,7 @@ describe('Leaks', () => {
delete global.DTRACE_NET_SERVER_CONNECTION;

const leaks = Lab.leaks.detect();

expect(leaks.length).to.equal(0);

done();
Expand Down
10 changes: 5 additions & 5 deletions test/reporters.js
Expand Up @@ -79,7 +79,7 @@ describe('Reporter', () => {
});
});

const filename = Path.join(Os.tmpDir(), [Date.now(), process.pid, Crypto.randomBytes(8).toString('hex')].join('-'));
const filename = Path.join(Os.tmpdir(), [Date.now(), process.pid, Crypto.randomBytes(8).toString('hex')].join('-'));
Lab.report(script, { output: filename }, (err, code, output) => {

expect(err).to.not.exist();
Expand All @@ -102,7 +102,7 @@ describe('Reporter', () => {
});

const randomname = [Date.now(), process.pid, Crypto.randomBytes(8).toString('hex')].join('-');
const folder = Path.join(Os.tmpDir(), randomname);
const folder = Path.join(Os.tmpdir(), randomname);
const filename = Path.join(folder, randomname);
Lab.report(script, { output: filename }, (err, code, output) => {

Expand All @@ -126,7 +126,7 @@ describe('Reporter', () => {
});
});

const filename = Path.join(Os.tmpDir(), [Date.now(), process.pid, Crypto.randomBytes(7).toString('hex')].join('-'));
const filename = Path.join(Os.tmpdir(), [Date.now(), process.pid, Crypto.randomBytes(7).toString('hex')].join('-'));
Lab.report(script, { reporter: ['console'], output: [filename] }, (err, code, output) => {

expect(err).to.not.exist();
Expand Down Expand Up @@ -2080,7 +2080,7 @@ describe('Reporter', () => {
});

const recorder = new Recorder();
const filename = Path.join(Os.tmpDir(), [Date.now(), process.pid, Crypto.randomBytes(8).toString('hex')].join('-'));
const filename = Path.join(Os.tmpdir(), [Date.now(), process.pid, Crypto.randomBytes(8).toString('hex')].join('-'));

Lab.report(script, { reporter: ['lcov', 'console'], output: [filename, recorder], coverage: true }, (err, code, output) => {

Expand Down Expand Up @@ -2122,7 +2122,7 @@ describe('Reporter', () => {
});

const recorder = new Recorder();
const filename = Path.join(Os.tmpDir(), [Date.now(), process.pid, Crypto.randomBytes(8).toString('hex')].join('-'));
const filename = Path.join(Os.tmpdir(), [Date.now(), process.pid, Crypto.randomBytes(8).toString('hex')].join('-'));

Lab.report(script, { reporter: ['console', 'console'], output: [filename, recorder], coverage: true }, (err, code, output) => {

Expand Down

0 comments on commit ffe0618

Please sign in to comment.