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 failing doc tests #123

Merged
merged 2 commits into from
Sep 18, 2024
Merged

Fix failing doc tests #123

merged 2 commits into from
Sep 18, 2024

Conversation

rukai
Copy link
Contributor

@rukai rukai commented Sep 18, 2024

Running cargo test locally results in failing doc tests.
Turns out CI was not testing doc tests.
Its very silly but it seems that cargo test --all-targets skips running doc tests even though cargo test runs doc tests 🤦
We already encountered this and fixed it in shotover https://github.com/shotover/shotover-proxy/blob/12ff17133952f643a128dbbb06ef3f87e4782cfd/.github/workflows/build_and_test.yaml#L66 but never did so in this project.

Since CI was not running doc tests, some doctest failures slipped through, so this PR fixes those failures.

@rukai rukai requested review from cjrolo and worryg0d September 18, 2024 00:42
@cjrolo cjrolo merged commit 11e4027 into main Sep 18, 2024
2 checks passed
@cjrolo cjrolo deleted the fix_doc_tests branch September 18, 2024 08:29
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