mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add cleanup strategy to loadtest (#4991)
This commit is contained in:
+3
-2
@@ -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