diff --git a/cmd/hakurei/json_test.go b/cmd/hakurei/json_test.go index c6649567..433a514b 100644 --- a/cmd/hakurei/json_test.go +++ b/cmd/hakurei/json_test.go @@ -66,7 +66,7 @@ func TestEncodeJSON(t *testing.T) { want string }{ {"marshaler", errorJSONMarshaler{}, - `cannot encode json for main.errorJSONMarshaler: unique error 3735928559 injected by the test suite`}, + `cannot encode json for *main.errorJSONMarshaler: unique error 3735928559 injected by the test suite`}, {"default", func() {}, `cannot write json: json: unsupported type: func()`}, } diff --git a/go.mod b/go.mod index 6457cffa..7514bcba 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module hakurei.app -go 1.26 +go 1.27 diff --git a/internal/report/report_test.go b/internal/report/report_test.go index 6c7a4046..15abf13e 100644 --- a/internal/report/report_test.go +++ b/internal/report/report_test.go @@ -55,7 +55,7 @@ func TestDispatch(t *testing.T) { }), }, }, true, []string{`{"kind":"fatal","message":"rejecting coldboot loop","error":"unique error 51966 injected by the test suite"} -`, `{"kind":"inconsistent","message":"processed inconsistent uevent","error":{"fault":1,"event":{"action":"add","devpath":"\u0000","env":{"V":"\ufffd"},"seqnum":2,"subsystem":""},"object":{"state":1,"devpath":"\u0000","subsystem":"","env":{"V":"\ufffd"}}}} +`, `{"kind":"inconsistent","message":"processed inconsistent uevent","error":{"fault":1,"event":{"action":"add","devpath":"\u0000","env":{"V":"` + "\ufffd" + `"},"seqnum":2,"subsystem":""},"object":{"state":1,"devpath":"\u0000","subsystem":"","env":{"V":"` + "\ufffd" + `"}}}} `}, `dispatch: rejecting coldboot loop: unique error 51966 injected by the test suite dispatch: processed inconsistent uevent: duplicate add event on devpath "\x00" `, nil},