diff --git a/packages/artillery/lib/platform/local/index.js b/packages/artillery/lib/platform/local/index.js index 3cd4bf214c..0e5decc189 100644 --- a/packages/artillery/lib/platform/local/index.js +++ b/packages/artillery/lib/platform/local/index.js @@ -137,6 +137,10 @@ class PlatformLocal { // 'after' hook is executed in the main thread, after all workers // are done await this.runHook('after', this.contextVars); + + for (const [workerId, w] of Object.entries(this.workers)) { + await this.stopWorker(workerId); + } } // ********