chore(tests): avoid initializing the DB data when not needed BE-12801 (#2233)

This commit is contained in:
andres-portainer
2026-04-07 15:49:57 -03:00
committed by GitHub
parent 2240d0516c
commit 30ca5e298c
18 changed files with 35 additions and 35 deletions
+2 -2
View File
@@ -198,7 +198,7 @@ func Test_updateStackInTx(t *testing.T) {
func TestStackUpdate(t *testing.T) {
t.Helper()
_, store := datastore.MustNewTestStore(t, true, true)
_, store := datastore.MustNewTestStore(t, false, true)
testDataPath := filepath.Join(t.TempDir())
fileService, err := filesystem.NewService(testDataPath, "")
@@ -324,7 +324,7 @@ type testUpdateStackPayload interface {
func setupUpdateStackInTxTest[T testUpdateStackPayload](t *testing.T, stack *portainer.Stack, payload T) *updateStackInTxTestSetup {
t.Helper()
_, store := datastore.MustNewTestStore(t, true, true)
_, store := datastore.MustNewTestStore(t, false, true)
testDataPath := filepath.Join(t.TempDir())
fileService, err := filesystem.NewService(testDataPath, "")