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
test: fix global state pollution in TestFormatMessage
TestFormatMessage sets the package-level outputFormat to hex but
never restores it. When TestProduceConsume runs afterward, consume
still uses hex format, producing "7468697320697320612074657374"
instead of "this is a test".
Add defer to restore outputFormat after each subtest.