2021-11-24 09:42:24 +01:00
|
|
|
'use strict';
|
|
|
|
const common = require('../common');
|
2022-07-24 13:55:11 +02:00
|
|
|
const assert = require('assert');
|
2021-11-24 09:42:24 +01:00
|
|
|
const { PassThrough } = require('stream');
|
|
|
|
|
|
|
|
const pt = new PassThrough({ highWaterMark: 0 });
|
|
|
|
pt.on('drain', common.mustCall());
|
2022-07-24 13:55:11 +02:00
|
|
|
assert(!pt.write('hello1'));
|
|
|
|
pt.read();
|
2021-11-24 09:42:24 +01:00
|
|
|
pt.read();
|