GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: wait for stream close before writing to file · nodejs/node@ce21fc7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-readline-async-iterators-destroy.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-readline-async-iterators-destroy.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-readline-async-iterators-destroy.js
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
const common = require('../common');
44
const fs = require('fs');
5+
const { once } = require('events');
56
const { join } = require('path');
67
const readline = require('readline');
78
const assert = require('assert');
@@ -45,6 +46,8 @@ async function testSimpleDestroy() {
4546

4647
rli.close();
4748
readable.destroy();
49+
50+
await once(readable, 'close');
4851
}
4952
}
5053

@@ -78,6 +81,8 @@ async function testMutualDestroy() {
7881

7982
rli.close();
8083
readable.destroy();
84+
85+
await once(readable, 'close');
8186
}
8287
}
8388

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.