diff --git a/cmd/objbench.go b/cmd/objbench.go index 39913f9cd543..f150ccb4d14b 100644 --- a/cmd/objbench.go +++ b/cmd/objbench.go @@ -893,7 +893,7 @@ func functionalTesting(blob object.ObjectStorage, result *[][]string, colorful b }) runCase("special key", func(blob object.ObjectStorage) error { - key := "测试编码文件" + `{"name":"juicefs"}` + string('\u001F') + key := "测试编码文件" + `{"name":"juicefs"}` + string('\u001F') + "%uFF081%uFF09.jpg" defer blob.Delete(key) //nolint:errcheck if err := blob.Put(key, bytes.NewReader([]byte("1"))); err != nil { return fmt.Errorf("put encode file failed: %s", err) diff --git a/pkg/object/object_storage_test.go b/pkg/object/object_storage_test.go index f5d056101fdf..f26b8c86d4b9 100644 --- a/pkg/object/object_storage_test.go +++ b/pkg/object/object_storage_test.go @@ -126,7 +126,7 @@ func testStorage(t *testing.T, s ObjectStorage) { } }() - key := "测试编码文件" + `{"name":"zhijian"}` + string('\u001F') + key := "测试编码文件" + `{"name":"juicefs"}` + string('\u001F') + "%uFF081%uFF09.jpg" if err := s.Put(key, bytes.NewReader(nil)); err != nil { t.Logf("PUT testEncodeFile failed: %s", err.Error()) } else {