Skip to content

stream, test: Add test for _writableState clearBuffer state machine #8687

@mcollina

Description

@mcollina
  • Version: all
  • Platform: all
  • Subsystem: stream, test

Part of #8644

Add tests for:

stream._writableState.corked
stream._writableState.bufferedRequestCount

function clearBuffer(stream, state) {

// when true all writes will be buffered until .uncork() call
this.corked = 0;

// count buffered requests
this.bufferedRequestCount = 0;

cc @Fishrock123 @nodejs/streams

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueIssues that are suitable for first-time contributors.streamIssues and PRs related to the stream subsystem.testIssues and PRs related to the tests.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions