-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #275 from chrisccoulson/luks2-dont-time-tests
luks2: don't time tests to verify KDF settings. There are a few tests where we time the KDF operation because there isn't another way to determine if it was configured correctly by cryptsetup. These tests have always been a little bit flaky, and they have been significantly more so recently. Stop timing them, and instead: - in internal/luks2, just rely on the fact that we verify the expected commandline arguments were passed to cryptsetup. We have to assume that these options are correct, which is what the existing tests attempted to confirm. - in crypt_test.go, ensure that we pass the correct target time to internal/luks2.
- Loading branch information
Showing
2 changed files
with
48 additions
and
53 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