Skip to content

Commit b3c53dd

Browse files
mgoldenbergHywan
authored andcommitted
test(indexeddb): run time-based integration tests on event cache
Signed-off-by: Michael Goldenberg <[email protected]>
1 parent c8bffa2 commit b3c53dd

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/matrix-sdk-indexeddb/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ getrandom = { workspace = true, features = ["js"] }
5151
[dev-dependencies]
5252
assert_matches.workspace = true
5353
assert_matches2.workspace = true
54+
gloo-timers = { workspace = true, features = ["futures"] }
5455
matrix-sdk-base = { workspace = true, features = ["testing"] }
5556
matrix-sdk-common = { workspace = true, features = ["js"] }
5657
matrix-sdk-crypto = { workspace = true, features = ["js", "testing"] }

crates/matrix-sdk-indexeddb/src/event_cache_store/mod.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,10 @@ impl_event_cache_store! {
671671

672672
#[cfg(test)]
673673
mod tests {
674-
use matrix_sdk_base::event_cache::store::{EventCacheStore, EventCacheStoreError};
674+
use matrix_sdk_base::{
675+
event_cache::store::{EventCacheStore, EventCacheStoreError},
676+
event_cache_store_integration_tests_time,
677+
};
675678
use matrix_sdk_test::async_test;
676679
use uuid::Uuid;
677680

@@ -695,6 +698,9 @@ mod tests {
695698

696699
#[cfg(target_family = "wasm")]
697700
indexeddb_event_cache_store_integration_tests!();
701+
702+
#[cfg(target_family = "wasm")]
703+
event_cache_store_integration_tests_time!();
698704
}
699705

700706
mod encrypted {
@@ -712,5 +718,8 @@ mod tests {
712718

713719
#[cfg(target_family = "wasm")]
714720
indexeddb_event_cache_store_integration_tests!();
721+
722+
#[cfg(target_family = "wasm")]
723+
event_cache_store_integration_tests_time!();
715724
}
716725
}

0 commit comments

Comments
 (0)