File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
crates/matrix-sdk-base/src/event_cache/store Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -1435,18 +1435,15 @@ macro_rules! event_cache_store_integration_tests_time {
1435
1435
mod event_cache_store_integration_tests_time {
1436
1436
use std:: time:: Duration ;
1437
1437
1438
+ #[ cfg( all( target_family = "wasm" , target_os = "unknown" ) ) ]
1439
+ use gloo_timers:: future:: sleep;
1438
1440
use matrix_sdk_test:: async_test;
1441
+ #[ cfg( not( all( target_family = "wasm" , target_os = "unknown" ) ) ) ]
1442
+ use tokio:: time:: sleep;
1439
1443
use $crate:: event_cache:: store:: IntoEventCacheStore ;
1440
1444
1441
1445
use super :: get_event_cache_store;
1442
1446
1443
- pub async fn sleep( duration: Duration ) {
1444
- #[ cfg( all( target_family = "wasm" , target_os = "unknown" ) ) ]
1445
- gloo_timers:: future:: sleep( duration) . await ;
1446
- #[ cfg( not( all( target_family = "wasm" , target_os = "unknown" ) ) ) ]
1447
- tokio:: time:: sleep( duration) . await ;
1448
- }
1449
-
1450
1447
#[ async_test]
1451
1448
async fn test_lease_locks( ) {
1452
1449
let store = get_event_cache_store( ) . await . unwrap( ) . into_event_cache_store( ) ;
You can’t perform that action at this time.
0 commit comments