h2non / gock

HTTP traffic mocking and testing made easy in Go ༼ʘ̚ل͜ʘ̚༽
https://pkg.go.dev/github.com/h2non/gock
MIT License
2.09k stars 107 forks source link

Add failing test for Persist() #83

Closed gabrielf closed 2 years ago

gabrielf commented 3 years ago

nock seem to consider a mock marked with Persist() as used when called at least once. But in gock IsDone() always returns false whether the mock has been called or not…