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:
@@ -4,7 +4,6 @@ import (
|
||||
"testing"
|
||||
|
||||
"lol.mleku.dev/chk"
|
||||
"lol.mleku.dev/log"
|
||||
"next.orly.dev/pkg/interfaces/signer/p8k"
|
||||
)
|
||||
|
||||
@@ -22,7 +21,7 @@ func TestCreateUnsigned(t *testing.T) {
|
||||
if err = ev.Sign(signer); chk.E(err) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
log.I.S(ev)
|
||||
// log.I.S(ev)
|
||||
if ok, err = Validate(ev, challenge, relayURL); chk.E(err) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user