From 9356e9667da8fabb99b0a0c2b15fb379bf25896f 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add common.mustCall() check to test-child-process-stdio-big-write-end. PR-URL: https://github.com/nodejs/node/pull/13605 Reviewed-By: Luigi Pinca Reviewed-By: Refael Ackermann Reviewed-By: Colin Ihrig Reviewed-By: Yuta Hiroto Reviewed-By: Tobias Nießen Reviewed-By: James M Snell --- 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 5e32314cc87a33..71333bdbd534ab 100644 --- a/test/parallel/test-child-process-stdio-big-write-end.js +++ b/test/parallel/test-child-process-stdio-big-write-end.js @@ -1,5 +1,5 @@ 'use strict'; -require('../common'); +const common = require('../common'); const assert = require('assert'); let bufsize = 0; @@ -22,10 +22,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;