You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Mockery there is the option to register a callback function which will get triggered upon hitting the mock, in our unit tests we use this to have the unit test wait for some mocks to get hit which happen in a detached go routine, this way we do not have to add any arbitrary time.Sleep in the tests. The Mockery example is listed below, it would be nice if this would also be possible in Gock.
Using Mockery there is the option to register a callback function which will get triggered upon hitting the mock, in our unit tests we use this to have the unit test wait for some mocks to get hit which happen in a detached go routine, this way we do not have to add any arbitrary
time.Sleep
in the tests. The Mockery example is listed below, it would be nice if this would also be possible in Gock.The text was updated successfully, but these errors were encountered: