Open evanfuller opened 4 years ago
I believe you want the env.AssertNotCalled exposed. As a workaround use env.SetOnActivityStartedListener interceptor to check that activity of a certain type is not called.
Times(0) is not supported by the underlying testify framework: https://github.com/stretchr/testify/blob/f6cbfc0d0341bd4f04831a275adbef45a2221690/mock/mock.go#L50
I am testing a workflow where I call a few activities in sequence. If activity A fails, then the workflow should be aborted, and activity B should not be called. I have written the following test code:
When I run this test, I get the following error from the workflow:
Could the mocks be updated to support
.Times(0)
?