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
fix(test): match xrayErrorCause by reflected type, not type name
Go 1.27 makes encoding/json's RawMessage an alias for jsontext.Value, so
the runtime type name is now "jsontext.Value". testify's AnythingOfType
matches on that name string, so the three SendInvokeFinishedEvent
expectations stopped matching and the mock panicked on an unexpected call:
Diff: 1: FAIL: type json.RawMessage != type Value - (jsontext.Value=null)
Switch to mock.IsType, which resolves the type through reflection and so
matches whether or not the alias is in play. This has broken
TestRuntimeErrorFailure_ErrorWhileError and left the localstack branch red
since the go directive bump to 1.27.0 in #122.
0 commit comments