crypto: Run the time sensitive tests only on linux.

This commit is contained in:
Damir Jelić 2020-12-08 12:34:59 +01:00
parent a80aa4c2ad
commit b982d36303
2 changed files with 2 additions and 2 deletions

View file

@ -138,7 +138,7 @@ mod test {
use crate::ReadOnlyAccount;
#[tokio::test]
#[cfg(not(target_os = "macos"))]
#[cfg(target_os = "linux")]
async fn expiration() {
let settings = EncryptionSettings {
rotation_period_msgs: 1,

View file

@ -422,7 +422,7 @@ mod test {
// This test doesn't run on macos because we're modifying the session
// creation time so we can get around the UNWEDGING_INTERVAL.
#[async_test]
#[cfg(not(target_os = "macos"))]
#[cfg(not(target_os = "linux"))]
async fn session_unwedging() {
let manager = session_manager().await;
let bob = bob_account();