From 2166ced8a5c007fa53cb8c6cc6b05bf12d8c6e4f Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 10 Jun 2017 20:42:35 -0700 Subject: [PATCH] test: add mustCall() to child-process test Add common.mustCall() check to test-child-process-stdio-big-write-end. --- test/parallel/test-child-process-stdio-big-write-end.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-child-process-stdio-big-write-end.js b/test/parallel/test-child-process-stdio-big-write-end.js index 6cc3d86644ac39..1f97f157f7cab7 100644 --- a/test/parallel/test-child-process-stdio-big-write-end.js +++ b/test/parallel/test-child-process-stdio-big-write-end.js @@ -20,7 +20,7 @@ // USE OR OTHER DEALINGS IN THE SOFTWARE. 'use strict'; -require('../common'); +const common = require('../common'); const assert = require('assert'); const BUFSIZE = 1024; @@ -43,10 +43,10 @@ function parent() { child.stdout.on('data', function(c) { n += c; }); - child.stdout.on('end', function() { + child.stdout.on('end', common.mustCall(function() { assert.strictEqual(+n, sent); console.log('ok'); - }); + })); // Write until the buffer fills up. let buf;