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: example tests #27

Merged
merged 2 commits into from
Jan 8, 2024
Merged

fix: example tests #27

merged 2 commits into from
Jan 8, 2024

Conversation

GCrispino
Copy link
Contributor

This fixes two problems in the example tests:

  1. They apparently weren't being picked up because of the underscore prefix of the _examples folder ;
  2. On TestApi, the test's ResponseRecorder instance kept in the suite struct wasn't being reset which was leading to it mixing up responses from different test cases, hence making tests fail (the failures weren't being caught by CI because of the underscore issue outlined above).

This PR fixes above issues by renaming _examples to examples (1) and by adding a Before hook in the tests to reset the response recorder (2).

@0xste
Copy link
Collaborator

0xste commented Jan 5, 2024

Looks good to me 👍

@0xste 0xste self-assigned this Jan 5, 2024
@0xste 0xste self-requested a review January 5, 2024 14:31
@0xste 0xste added the bug Something isn't working label Jan 5, 2024
@aaronc aaronc changed the title Fix example tests fix: example tests Jan 8, 2024
@aaronc aaronc merged commit 8bbcc34 into regen-network:main Jan 8, 2024
2 checks passed
0xste pushed a commit that referenced this pull request Feb 13, 2024
This moves all example code from _examples/ into examples/ as per #27.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants