From 83b2ba27fc296b29ed974ae043f9d53d08d2195f Mon Sep 17 00:00:00 2001 From: zhijian Date: Wed, 28 Feb 2024 16:27:10 +0800 Subject: [PATCH] test: adjust gluster test (#4430) --- pkg/object/filesystem_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/object/filesystem_test.go b/pkg/object/filesystem_test.go index ff736455a75a..c24b4345df18 100644 --- a/pkg/object/filesystem_test.go +++ b/pkg/object/filesystem_test.go @@ -155,7 +155,7 @@ func testFileSystem(t *testing.T, s ObjectStorage) { expectedKeys = []string{"x/", "x/x.txt", "xy.txt", "xyz/", "xyz/xyz.txt"} } if mode == 0422 { - if _, ok := ss.(*gluster); ok { + if strings.HasPrefix(s.String(), "gluster://") { expectedKeys = []string{"x/", "x/x.txt", "xy.txt", "xyz/", "xyz/xyz.txt"} } }