feat: add cleanup strategy to loadtest (#4991)

This commit is contained in:
Dean Sheather
2022-11-11 04:14:50 +10:00
committed by GitHub
parent 1c9677d37a
commit e847276d74
9 changed files with 314 additions and 122 deletions

View File

@ -135,8 +135,9 @@ func loadtest() *cobra.Command {
client.PropagateTracing = tracePropagate
// Prepare the test.
strategy := config.Strategy.ExecutionStrategy()
th := harness.NewTestHarness(strategy)
runStrategy := config.Strategy.ExecutionStrategy()
cleanupStrategy := config.CleanupStrategy.ExecutionStrategy()
th := harness.NewTestHarness(runStrategy, cleanupStrategy)
for i, t := range config.Tests {
name := fmt.Sprintf("%s-%d", t.Type, i)