From 97e4ec5a6904c5abe7d068b9b87a26765ef333cd Mon Sep 17 00:00:00 2001 From: yah01 Date: Mon, 8 Jan 2024 15:58:48 +0800 Subject: [PATCH] enhance: use random root path for minio unit tests (#29753) this avoids the conflicts while running multiple unit tests Signed-off-by: yah01 --- internal/storage/minio_chunk_manager_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/storage/minio_chunk_manager_test.go b/internal/storage/minio_chunk_manager_test.go index 3d0dd2f771..aae848f432 100644 --- a/internal/storage/minio_chunk_manager_test.go +++ b/internal/storage/minio_chunk_manager_test.go @@ -18,6 +18,7 @@ package storage import ( "context" + "fmt" "io" "math/rand" "path" @@ -85,7 +86,7 @@ func TestMinIOCM(t *testing.T) { configRoot := Params.MinioCfg.RootPath.GetValue() - testMinIOKVRoot := path.Join(configRoot, "milvus-minio-ut-root") + testMinIOKVRoot := path.Join(configRoot, fmt.Sprintf("minio-ut-%d", rand.Int())) t.Run("test load", func(t *testing.T) { testLoadRoot := path.Join(testMinIOKVRoot, "test_load")