Skip to content

Commit 91da5cd

Browse files
committed
create new variable scope for each test run to avoid polluting the default settings with overrides
1 parent 762efcb commit 91da5cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/coordinator/test/test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77

88
"github.com/ethpandaops/assertoor/pkg/coordinator/scheduler"
99
"github.com/ethpandaops/assertoor/pkg/coordinator/types"
10+
"github.com/ethpandaops/assertoor/pkg/coordinator/vars"
1011
"github.com/sirupsen/logrus"
1112
)
1213

@@ -37,7 +38,7 @@ func CreateTest(runID uint64, descriptor types.TestDescriptor, logger logrus.Fie
3738
}
3839

3940
// set test variables
40-
test.variables = descriptor.Vars()
41+
test.variables = vars.NewVariables(descriptor.Vars())
4142

4243
// parse tasks
4344
test.taskScheduler = scheduler.NewTaskScheduler(test.logger, services, test.variables)

0 commit comments

Comments
 (0)