-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flaky tests #2144
Comments
@imiric: We used to have a single issue for all (#1357), which I think would still make sense to consolidate all of them. Mocking time would help (#1986), but for a lot of these, we need a non-time-based way of making assertions, which is tricky in most cases. 😕 |
Related: #2166 |
TestStreamLogsToLogger seems to also be flaky:
|
TestRampingVUsHandleRemainingVUs as well:
|
I've seen it some times
|
One more
|
|
The
An example: https://github.com/grafana/k6/actions/runs/5386480781/jobs/9776586409 |
We are getting some failing CI runs caused by the logs tailing tests. They are generated from the time.Sleep use that is not deterministic.
Historically, we decided to not add a mock library just to support those tests. Instead, the code is using HTTPMultiBin that has the network dependency, so Sleep is waiting for an approximate amount of time necessary for flushing messages across the WebSocket connection, but not always the used duration value is enough.
The suggestion here is to find a more deterministic approach for detecting when the sent message from the HTTPMultiBin server has been received from the client.
The text was updated successfully, but these errors were encountered: