Remove io.SeekStart and replace with 0 as it is go 1.7 only
This commit is contained in:
parent
5b8327038a
commit
93e84403bb
3 changed files with 5 additions and 5 deletions
|
@ -895,7 +895,7 @@ func TestNewDecrypterSeek(t *testing.T) {
|
|||
// Now try decoding it with a single open and lots of seeks
|
||||
rc, err := c.DecryptDataSeek(open, 0)
|
||||
for _, offset := range trials {
|
||||
_, err := rc.Seek(int64(offset), io.SeekStart)
|
||||
_, err := rc.Seek(int64(offset), 0)
|
||||
assert.NoError(t, err)
|
||||
|
||||
seekedDecrypted, err := ioutil.ReadAll(rc)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue