mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
tests
This commit is contained in:
+5
-1
@@ -21,7 +21,7 @@ let rsClosed = false;
|
||||
let callbackCalled = false;
|
||||
|
||||
function check() {
|
||||
if (wsClosed && rsClosed && callbackCalled) process.exit(0);
|
||||
if (wsClosed && rsClosed && callbackCalled) console.log(`pump finished`);
|
||||
}
|
||||
|
||||
ws.on('close', () => {
|
||||
@@ -46,3 +46,7 @@ setTimeout(() => {
|
||||
setTimeout(() => {
|
||||
throw new Error('timeout');
|
||||
}, 5000);
|
||||
|
||||
pump(createReadStream('/dev/random'), toHex(), createWriteStream('/dev/null'));
|
||||
|
||||
pump([createReadStream('/dev/random'), toHex(), createWriteStream('/dev/null')]);
|
||||
|
||||
Reference in New Issue
Block a user