all: Remove or convert deprecated API usages (#8459)

This commit is contained in:
Jakob Borg
2022-07-28 17:14:49 +02:00
committed by GitHub
parent 7e26f74f38
commit 7bdb5faa9c
7 changed files with 10 additions and 11 deletions

View File

@@ -336,13 +336,13 @@ func TestWeakHash(t *testing.T) {
// both are of the same length, for example:
// File 1: abcdefgh
// File 2: xyabcdef
f.Seek(0, os.SEEK_SET)
f.Seek(0, io.SeekStart)
existing, err := scanner.Blocks(context.TODO(), f, protocol.MinBlockSize, size, nil, true)
if err != nil {
t.Error(err)
}
f.Seek(0, os.SEEK_SET)
f.Seek(0, io.SeekStart)
remainder := io.LimitReader(f, size-shift)
prefix := io.LimitReader(rand.Reader, shift)
nf := io.MultiReader(prefix, remainder)