Skip to content

stream, test: Add test for _writableState state machine #8686

Closed
@mcollina

Description

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

Part of #8644

stream._writableState.needDrain
stream._writableState.ending
stream._writableState.ended
stream._writableState.finished

this.needDrain = false;
// at the start of calling end()
this.ending = false;
// when end() has been called, and returned
this.ended = false;
// when 'finish' is emitted
this.finished = false;

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