test(indexeddb): run time-based integration tests on event cache

Signed-off-by: Michael Goldenberg <m@mgoldenberg.net>
This commit is contained in:
Michael Goldenberg
2025-08-07 14:21:42 -04:00
committed by Ivan Enderlin
parent c8bffa26a4
commit b3c53dd08f
3 changed files with 12 additions and 1 deletions

1
Cargo.lock generated
View File

@@ -3336,6 +3336,7 @@ dependencies = [
"async-trait",
"base64",
"getrandom 0.2.15",
"gloo-timers",
"gloo-utils",
"growable-bloom-filter",
"hkdf",

View File

@@ -51,6 +51,7 @@ getrandom = { workspace = true, features = ["js"] }
[dev-dependencies]
assert_matches.workspace = true
assert_matches2.workspace = true
gloo-timers = { workspace = true, features = ["futures"] }
matrix-sdk-base = { workspace = true, features = ["testing"] }
matrix-sdk-common = { workspace = true, features = ["js"] }
matrix-sdk-crypto = { workspace = true, features = ["js", "testing"] }

View File

@@ -671,7 +671,10 @@ impl_event_cache_store! {
#[cfg(test)]
mod tests {
use matrix_sdk_base::event_cache::store::{EventCacheStore, EventCacheStoreError};
use matrix_sdk_base::{
event_cache::store::{EventCacheStore, EventCacheStoreError},
event_cache_store_integration_tests_time,
};
use matrix_sdk_test::async_test;
use uuid::Uuid;
@@ -695,6 +698,9 @@ mod tests {
#[cfg(target_family = "wasm")]
indexeddb_event_cache_store_integration_tests!();
#[cfg(target_family = "wasm")]
event_cache_store_integration_tests_time!();
}
mod encrypted {
@@ -712,5 +718,8 @@ mod tests {
#[cfg(target_family = "wasm")]
indexeddb_event_cache_store_integration_tests!();
#[cfg(target_family = "wasm")]
event_cache_store_integration_tests_time!();
}
}