Description

WaitUntil sets the channel that will block the mock's return until its closed or a message is received.

Mock.On("MyMethod", arg1, arg2).WaitUntil(time.After(time.Second))

WaitUntil is referenced in 2 repositories

github.com/stretchr/testify github.com/ernesto-jimenez/reconnect