-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Register processes for cleanup (#153)
* fix: Register processes for cleanup * Make maxProcessHandlers configurable * Add tests and improve handler cleanup * Start k6 with a Context to make killing it easier * Run tests with race detector * Fix linting issues * Introduce a top-level context * Cancel test runs with WaitForResults if the HTTP request is canceled * Fix cyclomatic complexity issue in ServerHTTP * Introduce maxConcurrentTests limit on ServerHTTP level * Fix linting issue * Tune internal queue for processes to be handled * Use http.StatusTooManyRequests Co-authored-by: Iain Lane <[email protected]> * Log if the maximum concurrent tests limit is reached * Calculate Retry-After value from the median testrun times * Fix linting issue * Make metric name a constant --------- Co-authored-by: Iain Lane <[email protected]>
- Loading branch information
Showing
8 changed files
with
552 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.