Update params_test.go

This commit is contained in:
Skylar Ray 2025-03-11 15:32:10 +02:00 committed by GitHub
parent 5baf02ee10
commit a71f87eec6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,7 +31,7 @@ func TestMustRegisterPanic(t *testing.T) {
t.Parallel()
// Setup a defer to catch the expected panic to ensure it actually
// paniced.
// panicked.
defer func() {
if err := recover(); err == nil {
t.Error("mustRegister did not panic as expected")