diff --git a/test/simple/test-stdout-close-unref.js b/test/simple/test-stdout-close-unref.js index 533a0059367..42f399772f3 100644 --- a/test/simple/test-stdout-close-unref.js +++ b/test/simple/test-stdout-close-unref.js @@ -19,5 +19,6 @@ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. -process.stdout._handle.close(); -process.stdout._handle.unref(); // Should not segfault. +process.stdin.resume(); +process.stdin._handle.close(); +process.stdin._handle.unref(); // Should not segfault.