Remove io.SeekStart and replace with 0 as it is go 1.7 only

This commit is contained in:
Nick Craig-Wood 2016-10-22 12:07:51 +01:00
parent 5b8327038a
commit 93e84403bb
3 changed files with 5 additions and 5 deletions

View file

@ -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)