Skip to content

Commit

Permalink
fix copy CI error (#1269)
Browse files Browse the repository at this point in the history
Signed-off-by: kevindiu <[email protected]>

Co-authored-by: Yusuke Kato <[email protected]>
  • Loading branch information
kevindiu and kpango authored Jun 1, 2021
1 parent 9a51ce7 commit 7eb9847
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/io/copy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ package io

import (
"bytes"
"errors"
"io"
"reflect"
"sync"
"testing"

"github.com/vdaas/vald/internal/errors"

"go.uber.org/goleak"
)

Expand Down Expand Up @@ -331,7 +332,7 @@ func Test_copier_Copy(t *testing.T) {
dst := &bytes.Buffer{}

gotWritten, err := c.Copy(dst, test.args.src)
if err := test.checkFunc(test.want, gotWritten, err, dst.String()); err != nil {
if err := test.checkFunc(test.want, gotWritten, dst.String(), err); err != nil {
tt.Errorf("error = %v", err)
}
})
Expand Down

0 comments on commit 7eb9847

Please sign in to comment.