fix(test): ensure setupStorages is executed once (#6422)

In TestGetStorageVirtualFilesByPath() and TestGetBalancedStorage(), setupStorages() was being called twice, leading to a "UNIQUE constraint failed" error.
This commit is contained in:
Moraxyc 2024-05-09 14:22:19 +08:00 committed by GitHub
parent 4cbbda8832
commit 5f28532423
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,7 +60,6 @@ func TestGetStorageVirtualFilesByPath(t *testing.T) {
}
func TestGetBalancedStorage(t *testing.T) {
setupStorages(t)
set := mapset.NewSet[string]()
for i := 0; i < 5; i++ {
storage := op.GetBalancedStorage("/a/d/e1")