From 627fe82ef3f9e9afd0e28bbbf2643dda9d8e2fa0 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Fri, 6 Feb 2026 10:33:20 +0100 Subject: [PATCH] test(base): Ensure that each state store has its own channel for `RoomInfoNotableUpdate`s. --- crates/matrix-sdk-base/src/store/mod.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/crates/matrix-sdk-base/src/store/mod.rs b/crates/matrix-sdk-base/src/store/mod.rs index 009b8ab1a..86d412a40 100644 --- a/crates/matrix-sdk-base/src/store/mod.rs +++ b/crates/matrix-sdk-base/src/store/mod.rs @@ -868,7 +868,7 @@ impl StoreConfig { #[cfg(test)] mod tests { - use std::sync::Arc; + use std::{ops::Not, sync::Arc}; use assert_matches::assert_matches; use matrix_sdk_test::async_test; @@ -935,6 +935,14 @@ mod tests { assert_matches!(*store.room_load_settings.read().await, RoomLoadSettings::One(ref room_id) => { assert_eq!(room_id, room_id_0); }); + + // The `RoomInfoNotableUpdate` is not derived. Every one has its own channel. + assert!( + store + .room_info_notable_update_sender + .same_channel(&other.room_info_notable_update_sender) + .not() + ); } #[test]