Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crypto: Add OlmMachine::device_creation_time #3275

Merged
merged 1 commit into from
Mar 26, 2024
Merged

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Mar 26, 2024

Turns out this is useful for element-hq/element-meta#2313.

@richvdh richvdh requested a review from a team as a code owner March 26, 2024 12:42
@richvdh richvdh requested review from bnjbvr and removed request for a team March 26, 2024 12:42
Copy link

codecov bot commented Mar 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.55%. Comparing base (ce7143b) to head (2da9d91).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3275      +/-   ##
==========================================
- Coverage   83.56%   83.55%   -0.01%     
==========================================
  Files         238      238              
  Lines       24596    24598       +2     
==========================================
+ Hits        20553    20554       +1     
- Misses       4043     4044       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +2427 to +2428
assert!(device_creation_time <= MilliSecondsSinceUnixEpoch::now());
assert!(device_creation_time >= test_start_ts);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(no action needed) SystemTime (used by MilliSecondsSinceUnixEpoch) isn't monotonic, let's hope it's monotonic enough for these checks to not fail intermittently :)

@richvdh richvdh merged commit ab9e4f7 into main Mar 26, 2024
35 checks passed
@richvdh richvdh deleted the rav/device_creation_time branch March 26, 2024 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants