Reported by @cfiderer: #1155 (comment)
Raising a new issue because I think the fix to 1155 will not fix this.
This deadlocks in testify v1.7.4:
package kata
import (
"testing"
"github.com/stretchr/testify/mock"
)
type mockThing struct {
mock.Mock
}
func (m *mockThing) Do(arg interface{}) string {
return m.Called(arg).String(0)
}
func TestTestify(t *testing.T) {
m := &mockThing{}
defer m.AssertExpectations(t)
m.On("Do", mock.AnythingOfType("string")).Return("Nae")
m.Do(nil)
}