diff --git a/fs_error_test.go b/fs_error_test.go index 1a179d05..06771cf5 100644 --- a/fs_error_test.go +++ b/fs_error_test.go @@ -3,6 +3,7 @@ package gitbase import ( "context" "fmt" + "io" "io/ioutil" "os" "path/filepath" @@ -225,7 +226,7 @@ type BrokenFile struct { } func (fs *BrokenFile) Read(p []byte) (int, error) { - _, err := fs.Seek(0, os.SEEK_CUR) + _, err := fs.Seek(0, io.SeekCurrent) if err != nil { return 0, err }