Skip to content

Fix flaky response-body-fail test - #143

Merged
yoshuawuyts merged 1 commit into
bytecodealliance:mainfrom
adamrk:abk/fix-flaky-body-fail-test
Sep 2, 2026
Merged

Fix flaky response-body-fail test#143
yoshuawuyts merged 1 commit into
bytecodealliance:mainfrom
adamrk:abk/fix-flaky-body-fail-test

Conversation

@adamrk

@adamrk adamrk commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

The http_server would fail ~1/10 times when running locally for me and failed once on CI here. This would be for testing the case where the server hits an error while streaming the body. The issue seems to be that occasionally the ureq call will come back Ok and the error is only exposed while reading the body.

I'm not sure why ureq is non-deterministic in where it reports the error, but it seems entirely reasonable to only report it when streaming the body given that the server only errors when writing the body. So this just modifies the test to pass in that case as well.

@yoshuawuyts yoshuawuyts left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks reasonable to me; thank you for filing this!

@yoshuawuyts
yoshuawuyts merged commit 78d5da6 into bytecodealliance:main Sep 2, 2026
5 checks passed
@pchickey

pchickey commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

I was just thinking this looked familiar and it turns out I had run into that on #140 as well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants