Skip to content

Conversation

@syphar
Copy link
Member

@syphar syphar commented Nov 11, 2024

This is a bigger refactor that was sitting in a branch for some time, so sorry for the size of the change. This migrates most tests to be async tests following the axum test framework, see also #2634 and the axum test example.

This makes is possible that we don't have to run an actual TCP server for each test any more.

There are only a handful of tests missing to migrate, mostly from sync parts of the code.

A second change in there is that I didn't want the web tests to automatically follow redirects any more. So the tests have to be explicit when they expect the response directly, or via a redirect.

The next improvement will be about the the database setup which hopefully make tests execute.

@syphar syphar requested a review from a team as a code owner November 11, 2024 06:57
@github-actions github-actions bot added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label Nov 11, 2024
@syphar

This comment was marked as outdated.

Copy link
Member

@GuillaumeGomez GuillaumeGomez left a comment

Choose a reason for hiding this comment

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

Impressive work!

@syphar syphar merged commit 269b522 into rust-lang:master Nov 11, 2024
10 checks passed
@github-actions github-actions bot added S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it and removed S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed labels Nov 11, 2024
@syphar syphar deleted the better-fake-test branch November 11, 2024 13:45
@syphar syphar removed the S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it label Nov 29, 2024
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.

2 participants