Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: flaky worker-sandbox tests #217

Merged
merged 1 commit into from Aug 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion worker-sandbox/src/lib.rs
Expand Up @@ -467,7 +467,7 @@ pub async fn main(req: Request, env: Env, _ctx: worker::Context) -> Result<Respo
let signal = controller.signal();

let fetch_fut = async {
let fetch = Fetch::Url("http://localhost:8787/wait/200".parse().unwrap());
let fetch = Fetch::Url("http://localhost:8787/wait/2000".parse().unwrap());
fetch.send_with_signal(&signal).await
};
let delay_fut = async {
Expand Down
2 changes: 1 addition & 1 deletion worker-sandbox/tests/requests.rs
Expand Up @@ -262,7 +262,7 @@ fn request_init_fetch() {
#[test]
fn cancelled_fetch() {
let body = get("cancelled-fetch", |r| r).text().unwrap();
assert_eq!(body, "AbortError: The operation was aborted");
assert!(body.starts_with("AbortError: The operation was aborted"));
}

#[test]
Expand Down