-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: memoize the generated test known_hosts file
Previously, several test functions each wrote their own test known_hosts file, generating different random keys each time. This is slow and CPU-intensive. This commit changes the test logic to generate random keys once per overall test process, and re-use those test known_hosts contents across multiple test functions.
- Loading branch information
Showing
1 changed file
with
28 additions
and
4 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