mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-19 06:04:31 -04:00
test(indexeddb): run time-based integration tests on event cache
Signed-off-by: Michael Goldenberg <m@mgoldenberg.net>
This commit is contained in:
committed by
Ivan Enderlin
parent
c8bffa26a4
commit
b3c53dd08f
1
Cargo.lock
generated
1
Cargo.lock
generated
@@ -3336,6 +3336,7 @@ dependencies = [
|
||||
"async-trait",
|
||||
"base64",
|
||||
"getrandom 0.2.15",
|
||||
"gloo-timers",
|
||||
"gloo-utils",
|
||||
"growable-bloom-filter",
|
||||
"hkdf",
|
||||
|
||||
@@ -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"] }
|
||||
|
||||
@@ -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!();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user