-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
o/devicestate: use same assertion for seed/model in install mode test
Some tests in this suite were flaky because of the time difference between the seed and model creation and signing. If the second signing occurred in a different second, the assertions would differ slightly and the signatures wouldn't match. ``` timestamp: 2025-01-29T18:46:37Z sign-key-sha3-384: 35GjZS0BPeCV8fgGI0vYy-jlqaHNJ-2Q8zgPIk53oT_dciAGXVkY4yE6gIPxJ8q5 ... timestamp: 2025-01-29T18:46:38Z sign-key-sha3-384: 35GjZS0BPeCV8fgGI0vYy-jlqaHNJ-2Q8zgPIk53oT_dciAGXVkY4yE6gIPxJ8q5 ``` We can fix the issue by not generating the second model or by pinning the time for the duration of the test such that the two models would always be identical. This takes the first approach. Signed-off-by: Miguel Pires <[email protected]>
- Loading branch information
1 parent
4be46eb
commit 749db47
Showing
1 changed file
with
41 additions
and
29 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