mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 01:44:41 +01:00
chunker: fix md5all test for no-meta test remotes
This commit is contained in:
parent
bbcc9a45fe
commit
690a7ac783
1
.gitignore
vendored
1
.gitignore
vendored
@ -14,3 +14,4 @@ fuzz-build.zip
|
|||||||
*.orig
|
*.orig
|
||||||
*.rej
|
*.rej
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
|
__pycache__
|
||||||
|
@ -695,7 +695,7 @@ func testMetadataInput(t *testing.T, f *Fs) {
|
|||||||
|
|
||||||
// Test that chunker refuses to change on objects with future/unknown metadata
|
// Test that chunker refuses to change on objects with future/unknown metadata
|
||||||
func testFutureProof(t *testing.T, f *Fs) {
|
func testFutureProof(t *testing.T, f *Fs) {
|
||||||
if f.opt.MetaFormat == "none" {
|
if !f.useMeta {
|
||||||
t.Skip("this test requires metadata support")
|
t.Skip("this test requires metadata support")
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -865,9 +865,11 @@ func testChunkerServerSideMove(t *testing.T, f *Fs) {
|
|||||||
func testMD5AllSlow(t *testing.T, f *Fs) {
|
func testMD5AllSlow(t *testing.T, f *Fs) {
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
fsResult := deriveFs(ctx, t, f, "md5all", settings{
|
fsResult := deriveFs(ctx, t, f, "md5all", settings{
|
||||||
"chunk_size": "1P",
|
"chunk_size": "1P",
|
||||||
"name_format": "*.#",
|
"name_format": "*.#",
|
||||||
"hash_type": "md5all",
|
"hash_type": "md5all",
|
||||||
|
"transactions": "rename",
|
||||||
|
"meta_format": "simplejson",
|
||||||
})
|
})
|
||||||
chunkFs, ok := fsResult.(*Fs)
|
chunkFs, ok := fsResult.(*Fs)
|
||||||
require.True(t, ok, "fs must be a chunker remote")
|
require.True(t, ok, "fs must be a chunker remote")
|
||||||
|
Loading…
Reference in New Issue
Block a user