Add test files and enhance logging in various components
- Introduced test files for the blossom and database packages to improve test coverage and ensure functionality. - Updated logging practices by suppressing unnecessary log outputs during tests to enhance clarity and focus on relevant information. - Refactored error handling in the `handle-message` and `handle-req` functions to avoid logging expected context cancellation errors during shutdown. - Bumped version to v0.25.2 to reflect these updates.
This commit is contained in:
@@ -139,7 +139,9 @@ func ValidateAuthEvent(
|
||||
}
|
||||
|
||||
eventVerb := string(tTags[0].Value())
|
||||
if eventVerb != verb {
|
||||
// If verb is non-empty, verify it matches the event verb
|
||||
// Empty verb means "don't check the verb" (used by GetPubkeyFromRequest)
|
||||
if verb != "" && eventVerb != verb {
|
||||
err = errorf.E(
|
||||
"authorization event verb '%s' does not match required verb '%s'",
|
||||
eventVerb, verb,
|
||||
|
||||
Reference in New Issue
Block a user