Skip to content

abort after an await doesn't abort the test. #3983

@mstoykov

Description

@mstoykov

Description

If you run the following:

import exec from 'k6/execution'
import http from "k6/http";

export default async function() {
	await http.asyncRequest("GET", "https://k6.io")
	exec.test.abort("well")
}

You would expect k6 to stop and have this aborted. That isn't the case though due to upstream issue.

Basically due to how resolving a promise works it catches and eats the Interrupt created by the abort.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions