From 94243f0c885f79147a0c19cb2e11dae119683f81 Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Tue, 15 Jul 2025 16:50:26 +0200 Subject: all: manual linter fixes 1. recover the removed comment 2. unnecessary leading newline 3. unnecessary brackets 4. restore dropped "..." 5. use bytes.Equal instead of conversion to string --- syz-ci/jobs_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'syz-ci') diff --git a/syz-ci/jobs_test.go b/syz-ci/jobs_test.go index 547fd96e2..d00632197 100644 --- a/syz-ci/jobs_test.go +++ b/syz-ci/jobs_test.go @@ -4,6 +4,7 @@ package main import ( + "bytes" "errors" "fmt" "testing" @@ -125,7 +126,7 @@ func TestAggregateTestResults(t *testing.T) { if rep != nil { gotOutput = rep.rawOutput } - if fmt.Sprint(string(test.rawOut)) != fmt.Sprint(string(gotOutput)) { + if !bytes.Equal(test.rawOut, gotOutput) { t.Errorf("test #%v: got raw out: %q, want: %q", i, gotOutput, test.rawOut) } } -- cgit mrf-deployment