-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(pam/integration-tests): Improve reliability of PAM integration te…
…sts and actually run them in race mode (#560) Since we rely a lot on sleeping on the integration tests, due to the fact we can't yet go with charmbracelet/vhs#257, we need to be able to tune this value depending on the context we're running the tests. In general sanitizers slows down the runtime quite a bit (especially the thread one), so make possible to use dynamic sleep times values depending on variables that we adjust depending on the context we're running in. Tests can now slowed up/down using `AUTHD_TESTS_SLEEP_MULTIPLIER` variable too (this can be used for helping local testing too, e.g. personally I can reliably run the tests faster in my machine - with no failures - using `AUTHD_TESTS_SLEEP_MULTIPLIER=0.3`; but also it helps to quickly "fix" slower machines). Tune the tape files so that we don't miss some changing contents (as in the MFA/QrCode tests) and make the example broker to be a bit lazier. Then, I noticed that we were not actually running the integration tests in `-race` mode, so fix this. Indeed this implies slower tests, but at least now we're fully checking for races both the daemon and the client. This worked fine in various builds both in my fork and in a private repo fork I did where the builders are way slower than the public ones. UDENG-4793
- Loading branch information
Showing
98 changed files
with
1,440 additions
and
3,509 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
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.