Skip to content

Commit

Permalink
fix testsű
Browse files Browse the repository at this point in the history
  • Loading branch information
lyimmi committed Jul 29, 2023
1 parent 53d0bfc commit 4230c1b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions clamd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package clamd

import (
"context"
"errors"
"log"
"os"
"path"
Expand Down Expand Up @@ -75,7 +76,7 @@ func TestScan(t *testing.T) {
defer os.Remove(tf)

got, err := clamd.Scan(context.Background(), tf)
if err != nil {
if err != nil && !errors.Is(err, ErrEICARFound) {
t.Errorf("%v", err)
}
if got {
Expand All @@ -95,7 +96,7 @@ func TestStream(t *testing.T) {
}

got, err := clamd.ScanStream(context.Background(), f)
if err != nil {
if err != nil && !errors.Is(err, ErrEICARFound) {
t.Errorf("%v", err)
}
if got {
Expand All @@ -110,7 +111,7 @@ func TestScanAll(t *testing.T) {
defer os.Remove(tf)

got, err := clamd.ScanAll(context.Background(), tf)
if err != nil {
if err != nil && !errors.Is(err, ErrEICARFound) {
t.Errorf("%v", err)
}
if got {
Expand Down

0 comments on commit 4230c1b

Please sign in to comment.