Closed mrbbot closed 1 year ago
Latest commit: 3ebdc925d6edaceece07f5248f9eddd2f108369b
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
[Click here if you're a maintainer who wants to add a changeset to this PR](https://github.com/cloudflare/miniflare/new/bcoll/tre-allow-abnormal-closure?filename=.changeset/unlucky-boxes-march.md&value=---%0A%22%40fake-scope%2Ffake-pkg%22%3A%20patch%0A---%0A%0A%5BMiniflare%203%5D%20Allow%20abnormal%20closure%20in%20WebSocket%20%60fetch()%60%20test%0A)
We're seeing this
t.is(code, 3003)
assertion flake quite a bit in CI. Instead of being3003
, the close code is1006
which means "Abnormal Closure". I haven't been able to reproduce this locally, so suspect this is just some transient network failure with the Actions runner. Retrying the test seems to help, so this PR introduces aflaky
helper for wrapping test implementations with. This retires a test 3 times.