Open cwsbobwang opened 1 year ago
Curious about this as well. It seems like this functionality isn't implemented, looking at the struct here? Or did I just miss something?
The way I'm currently going about it is to always ensure I have the correct number of calls to an expected function, which means sometimes copy/pasting or putting an expectation in a loop, like so:
for i := 0; i < 5; i++ {
// this is expected to be called 5 times
redisClientMock.ExpectGet(myRedisKeys.TestKey).SetVal("true")
}
Looking forward to this feature. No requirement to anticipate the expiration time duration since my tested function computes the expired key's duration. Any updates available?
Sometimes, it's not care about the times of call ExpectActions, how to allow it anytimes?