Skip to content

Improve reliability of CTRL-C tests #19531

@stevenebutler

Description

@stevenebutler
          @stevenebutler 

Some of the Ctrl-C tests added in this PR are fragile and have been failing a lot in CIs, one example: https://github.com/PowerShell/PowerShell/pull/19529/checks?check_run_id=12840094279.

Invoke-WebRequest and Invoke-RestMethod support Cancellation through CTRL-C.Invoke-RestMethod: CTRL-C after stalled JSON download processes JSON response
Expected $true, but got $false.

Can you please take a look and make the tests more reliable? /cc @adityapatwardhan

Originally posted by @daxian-dbw in #19330 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions