Closed byang223 closed 6 years ago
Sorry don't have too much experience on Github/Pull Requests, would probably be better if you could commandeer this small edit.
Ouch, nice catch. I think you just need two small changes to TestGlobalCreateNewAutomatically in order to make the tests pass:
mockT.AssertNotCalled(t, "Error")
to mockT.AssertCalled(t, "Error")
(wow that's an unfortunate typo...)mockT.On("Error", mock.Anything).Return()
to the list of other mocked methodsIf you want to do that then I'm happy to merge this. Or if not then I can do it, just let me know :)
updated the tests
Sorry missed this earlier. This is the set of config I'm using. When snapshots don't exist and I'm running in bazel setting it is not failing as expected.