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 http/file_server.ts tests #3717

Merged
merged 9 commits into from
Oct 26, 2023
Merged

fix: flaky http/file_server.ts tests #3717

merged 9 commits into from
Oct 26, 2023

Conversation

iuioiua
Copy link
Contributor

@iuioiua iuioiua commented Oct 24, 2023

Closes #3716

@github-actions github-actions bot added the http label Oct 24, 2023
@iuioiua iuioiua changed the title fix: flaky serveDirIndex TLS test fix: flaky http/file_server.ts tests Oct 25, 2023
@iuioiua iuioiua marked this pull request as ready for review October 25, 2023 00:20
@iuioiua iuioiua requested a review from kt3k as a code owner October 25, 2023 00:20
const res = await fetch("https://localhost:4577/", { client });
client.close();

assertStringIncludes(await res.text(), "<title>Deno File Server</title>");
} finally {
await killFileServer();
}
},
);

Deno.test("partial TLS arguments fail", async function () {
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we need to change this test case because according to this run log https://github.com/denoland/deno_std/actions/runs/6625309968/job/17996042005?pr=3715 this test case was affected by the one above (i.e. the flakiness wasn't caused by this test case itself)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I understand. However, passing by, I realised the test could rely on more reliable APIs. Hence, the change.

@kt3k
Copy link
Member

kt3k commented Oct 26, 2023

flakiness happened in other places, but this one looks fine to me.

Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

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

LGTM

@iuioiua iuioiua merged commit f64ea09 into main Oct 26, 2023
11 checks passed
@iuioiua iuioiua deleted the fix-3716 branch October 26, 2023 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: serveDirIndex TLS and partial TLS arguments fail tests are flaky
2 participants