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:
parent
4cbbda8832
commit
5f28532423
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user