diff options
| author | Taras Madan <tarasmadan@google.com> | 2025-07-15 16:50:26 +0200 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2025-07-17 08:31:25 +0000 |
| commit | 94243f0c885f79147a0c19cb2e11dae119683f81 (patch) | |
| tree | 8cd43f579959083313fbcc97e90c9a1b67cb9087 /syz-ci | |
| parent | abd11cfd08430ec5f9d2c6dbd0e0f798816922d1 (diff) | |
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
Diffstat (limited to 'syz-ci')
| -rw-r--r-- | syz-ci/jobs_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
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) } } |
