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
ifs.allowedHeaders==nil {
t.Error("c.allowedHeaders should be nil when Default")
}
ifs.allowedMethods==nil {
t.Error("c.allowedMethods should be nil when Default")
}
We believe the following message is appropriate for this.
ifs.allowedHeaders==nil {
t.Error("c.allowedHeaders must not be nil when Default")
}
ifs.allowedMethods==nil {
t.Error("c.allowedMethods must not nil when Default")
}
Opened PR #42 to close this. TestDefault already had the corrected messages on master; the PR fixes the remaining misleading error messages in TestIsMethodAllowedReturnsFalseWithNoMethods and TestIsMethodAllowedReturnsTrueWithOptions.
Activity
fix test_default error message go-chi#28
fix test_default error message #28 (#29)
Krishnanand-G commentedon Jun 29, 2026
Opened PR #42 to close this. TestDefault already had the corrected messages on master; the PR fixes the remaining misleading error messages in TestIsMethodAllowedReturnsFalseWithNoMethods and TestIsMethodAllowedReturnsTrueWithOptions.
test: clarify error messages in isMethodAllowed tests (closes go-chi#28)
test: clarify error messages in isMethodAllowed tests (closes go-chi#28)
test: clarify error messages in isMethodAllowed tests (closes go-chi#28)