swaggo / gin-swagger

gin middleware to automatically generate RESTful API documentation with Swagger 2.0.
MIT License
3.76k stars 270 forks source link

Fix test error #242

Closed asjdf closed 1 year ago

asjdf commented 1 year ago

Reg the doc before starting the test.

I'm curious how this single test passes without registering the doc.

ubogdan commented 1 year ago

Please explain the meaning of this change.

asjdf commented 1 year ago

Please explain the meaning of this change.

The original code failed when it tried to run a single test. Because some of the single tests in this test file depend on other single tests running.

asjdf commented 1 year ago

Sorry for the missing description.

ubogdan commented 1 year ago

@asjdf Thanks for your contribution.