diff options
Diffstat (limited to 'test/sequential/test-async-wrap-getasyncid.js')
-rw-r--r-- | test/sequential/test-async-wrap-getasyncid.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sequential/test-async-wrap-getasyncid.js b/test/sequential/test-async-wrap-getasyncid.js index 5ff8760daa..851a0b3fbc 100644 --- a/test/sequential/test-async-wrap-getasyncid.js +++ b/test/sequential/test-async-wrap-getasyncid.js @@ -239,7 +239,7 @@ if (common.hasCrypto) { // eslint-disable-line node-core/crypto-check const err = handle.writeLatin1String(wreq, 'hi'.repeat(100000)); if (err) throw new Error(`write failed: ${getSystemErrorName(err)}`); - if (!wreq.async) { + if (!stream_wrap.streamBaseState[stream_wrap.kLastWriteWasAsync]) { testUninitialized(wreq, 'WriteWrap'); // Synchronous finish. Write more data until we hit an // asynchronous write. |