mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
feat: add cleanup strategy to loadtest (#4991)
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user