mirror of
https://github.com/rclone/rclone.git
synced 2025-12-06 00:03:32 +00:00
Use io.SeekStart/End/Current constants now for go1.7+ #2154
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
package vfs
|
||||
|
||||
import (
|
||||
"io"
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
@@ -58,7 +59,7 @@ func TestVFSbaseHandle(t *testing.T) {
|
||||
_, err = fh.Readdirnames(0)
|
||||
assert.Equal(t, ENOSYS, err)
|
||||
|
||||
_, err = fh.Seek(0, 0)
|
||||
_, err = fh.Seek(0, io.SeekStart)
|
||||
assert.Equal(t, ENOSYS, err)
|
||||
|
||||
_, err = fh.Stat()
|
||||
|
||||
Reference in New Issue
Block a user