fstests: make integration tests to check all backends can store any file name

This tests the encoder is working properly
This commit is contained in:
Nick Craig-Wood
2019-09-30 22:00:24 +01:00
parent f0c2249086
commit 57c1284df7
3 changed files with 179 additions and 119 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
package chunker
import (
"context"
"flag"
"fmt"
"testing"
@@ -19,7 +20,7 @@ var (
// test that chunking does not break large uploads
func (f *Fs) InternalTestPutLarge(t *testing.T, kilobytes int) {
t.Run(fmt.Sprintf("PutLarge%dk", kilobytes), func(t *testing.T) {
fstests.TestPutLarge(t, f, &fstest.Item{
fstests.TestPutLarge(context.Background(), t, f, &fstest.Item{
ModTime: fstest.Time("2001-02-03T04:05:06.499999999Z"),
Path: fmt.Sprintf("chunker-upload-%dk", kilobytes),
Size: int64(kilobytes) * int64(fs.KibiByte),