summaryrefslogtreecommitdiff
path: root/test/pummel/test-net-throttle.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/pummel/test-net-throttle.js')
-rw-r--r--test/pummel/test-net-throttle.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pummel/test-net-throttle.js b/test/pummel/test-net-throttle.js
index c273853362..ea48aa74d2 100644
--- a/test/pummel/test-net-throttle.js
+++ b/test/pummel/test-net-throttle.js
@@ -40,7 +40,7 @@ const server = net.createServer(function(connection) {
assert.strictEqual(false, connection.write(body.slice(2 * part_N, N)));
console.log(`bufferSize: ${connection.bufferSize}`, 'expecting', N);
assert.ok(0 <= connection.bufferSize &&
- connection._writableState.length <= N);
+ connection.writableLength <= N);
connection.end();
});