You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi team, I'm using testify to testing my method but encounter this issue (It only occur if using matchedBy arg)
When I using mock following by example but got error when using mockCall.Unset().
playground: https://go.dev/play/p/oQ2sGSRCtbR
Activity
[-][ISSUE] mockCall.Unset failed[/-][+][ISSUE] mockCall.Unset cause panic[/+]Fix for stretchr#1236
Fix Call.Unset() panic (issue stretchr#1236)
lisitsky commentedon Aug 15, 2022
I've got the same trouble :(
Could you check and may be vote for my fix for this?
#1250
Fix Call.Unset() panic (issue stretchr#1236)
at-syot commentedon Nov 17, 2022
For people who face this issue, i use this code
as temporary fix. you can try this to
gordonlee commentedon Dec 5, 2022
Just fyi, I put short snippet which only specific method would be deleted based on @at-syot 's code
lisitsky commentedon Dec 5, 2022
Hello @gordonlee .
I have a fix #1250 but have no permission merge it.
Could you help promote it?
hugoboos commentedon Dec 14, 2022
Running in the same problem. A fix would be appreciated 😄
Fix Call.Unset() panic (issue #1236) (#1250)
[-][ISSUE] mockCall.Unset cause panic[/-][+]mockCall.Unset cause panic[/+]merge: deps: update module github.com/stretchr/testify to v1.9.0
[-]mockCall.Unset cause panic[/-][+]mock: Call.Unset panics[/+]