diff options
| author | Shulhan <ms@kilabit.info> | 2018-05-17 01:10:13 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2018-05-17 01:10:13 +0700 |
| commit | f6ef1b63d1034aa340d3ab79fb87ca1332d5b38e (patch) | |
| tree | 424fb30a276a7038f699eda27f211fa7ce0f498a /common_test.go | |
| parent | 2e73509de51f85f9f987d2f95b3ed715e2cd1c65 (diff) | |
| download | beku-f6ef1b63d1034aa340d3ab79fb87ca1332d5b38e.tar.xz | |
[lint] Replace io.SeekStart with SEEK_SET and os.File with io.Reader
Diffstat (limited to 'common_test.go')
| -rw-r--r-- | common_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common_test.go b/common_test.go index a1f43bd..9f2950c 100644 --- a/common_test.go +++ b/common_test.go @@ -1,8 +1,8 @@ package beku import ( + "io" "io/ioutil" - "os" "testing" "github.com/shuLhan/share/lib/test" @@ -111,7 +111,7 @@ func TestConfirm(t *testing.T) { in.WriteString(c.answer + "\n") - _, err = in.Seek(0, os.SEEK_SET) + _, err = in.Seek(0, io.SeekStart) if err != nil { t.Fatal(err) } @@ -125,7 +125,7 @@ func TestConfirm(t *testing.T) { t.Fatal(err) } - _, err = in.Seek(0, os.SEEK_SET) + _, err = in.Seek(0, io.SeekStart) if err != nil { t.Fatal(err) } |
