Skip to content

Commit fe8b97b

Browse files
committed
fix: clean up deprecation warning issues from #9893
Re: mongodb/node-mongodb-native#2735
1 parent a068e44 commit fe8b97b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/errors.validation.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,16 +243,17 @@ describe('ValidationError', function() {
243243
});
244244

245245
describe('when user code defines a r/o Error#toJSON', function() {
246-
it('shoud not fail', function() {
246+
it('shoud not fail', function(done) {
247247
const err = [];
248248
const child = require('child_process')
249-
.fork('./test/isolated/project-has-error.toJSON.js', { silent: true });
249+
.fork('./test/isolated/project-has-error.toJSON.js', ['--no-warnings'], { silent: true });
250250

251251
child.stderr.on('data', function(buf) { err.push(buf); });
252252
child.on('exit', function(code) {
253253
const stderr = err.join('');
254254
assert.equal(stderr, '');
255255
assert.equal(code, 0);
256+
done();
256257
});
257258
});
258259
});

0 commit comments

Comments
 (0)