-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove time-sensitive setup and assertions from TestDNSResolverCache
Instead of relying on log messages, this hooks into the DNS resolver, and tracks how many times a resolution attempt was made after that. This should be more reliable, and avoid the recent flakiness we've seen with this test on Windows[1], even after #1974: scheduler_ext_test.go:1130: Error Trace: D:/a/k6/k6/execution/scheduler_ext_test.go:1130 Error: Should be true Test: TestDNSResolver/cache/3s Messages: expected error to contain one of the list of messages [1]: https://github.com/grafana/k6/actions/runs/5047828671/jobs/9071063454
- Loading branch information
Ivan Mirić
committed
May 24, 2023
1 parent
a2f311d
commit 1bd7109
Showing
1 changed file
with
36 additions
and
33 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