Skip to content

Commit

Permalink
fix(test): ensure setupStorages is executed once (#6422)
Browse files Browse the repository at this point in the history
In TestGetStorageVirtualFilesByPath() and TestGetBalancedStorage(), setupStorages() was being called twice, leading to a "UNIQUE constraint failed" error.
  • Loading branch information
Moraxyc authored May 9, 2024
1 parent 4cbbda8 commit 5f28532
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/op/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 5f28532

Please sign in to comment.