diff --git a/test/fixtures/not-main-module.js b/test/fixtures/not-main-module.js index f0bae3db15721d..247868101f981e 100644 --- a/test/fixtures/not-main-module.js +++ b/test/fixtures/not-main-module.js @@ -20,6 +20,5 @@ // USE OR OTHER DEALINGS IN THE SOFTWARE. const assert = require('assert'); -assert.notStrictEqual(module, require.main, 'require.main should not == module'); -assert.notStrictEqual(module, process.mainModule, - 'process.mainModule should not === module'); +assert.notStrictEqual(module, require.main); +assert.notStrictEqual(module, process.mainModule); diff --git a/test/parallel/test-async-wrap-trigger-id.js b/test/parallel/test-async-wrap-trigger-id.js index 271fe3b107e0dc..e8b4682b7167f8 100644 --- a/test/parallel/test-async-wrap-trigger-id.js +++ b/test/parallel/test-async-wrap-trigger-id.js @@ -11,18 +11,18 @@ let triggerAsyncId1; process.nextTick(() => { process.nextTick(() => { triggerAsyncId1 = triggerAsyncId(); + // Async resources having different causal ancestry + // should have different triggerAsyncIds assert.notStrictEqual( triggerAsyncId0, - triggerAsyncId1, - 'Async resources having different causal ancestry ' + - 'should have different triggerAsyncIds'); + triggerAsyncId1); }); process.nextTick(() => { const triggerAsyncId2 = triggerAsyncId(); + // Async resources having the same causal ancestry + // should have the same triggerAsyncId assert.strictEqual( triggerAsyncId1, - triggerAsyncId2, - 'Async resources having the same causal ancestry ' + - 'should have the same triggerAsyncId'); + triggerAsyncId2); }); });