grafana / xk6-disruptor

Extension for injecting faults into k6 tests
https://k6.io/docs/javascript-api/xk6-disruptor/
GNU Affero General Public License v3.0
89 stars 9 forks source link

Fix pod controller wait logic #368

Closed pablochacin closed 10 months ago

pablochacin commented 10 months ago

Description

After changes introduced in https://github.com/grafana/xk6-disruptor/pull/355 the logic for waiting all pod visitors to finish and report errors was broken.

Using a WaitGroup makes the pod controller wait for all pod visitors to end before checking for errors. Consequently, If one pod visitor fails (for instance, the agent command fails) the rest of the visitors will not be immediately canceled.

Checklist: