danielgtaylor / huma

Huma REST/HTTP API Framework for Golang with OpenAPI 3.1
https://huma.rocks/
MIT License
1.87k stars 138 forks source link

fix: race condition in CLI tests #436

Closed danielgtaylor closed 3 months ago

danielgtaylor commented 3 months ago

This PR fixes a minor race condition detected with go test -race, and the updated code serves as a better example for anyone looking over the test suite.

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 92.75%. Comparing base (1796483) to head (2ff5002).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #436 +/- ## ======================================= Coverage 92.75% 92.75% ======================================= Files 21 21 Lines 3562 3562 ======================================= Hits 3304 3304 Misses 220 220 Partials 38 38 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.