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
So each call to t.Middleware() returns a different instance of the inline function. Apparently this wasn't the case in previous versions of Go.
So then when MiddlewareStack.handler checks the list in ms.skips, the funcKey value doesn't match between the instance added to the skip list and the instance added to the router.
If the unit test is revised to use a single instance of the translator middleware function:
Description
Description
When running
go test
with Go 1.21.0, there's a unit test failure.Expected Behavior
Actual Behavior
To Reproduce
Installed via rtx:
Test:
Additional Context
macOS on Apple M2 Max.
The text was updated successfully, but these errors were encountered: