File tree 3 files changed +10
-5
lines changed
crates/matrix-sdk-crypto/src
3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -1247,7 +1247,8 @@ mod tests {
1247
1247
. with_transaction ( |mut btr| async {
1248
1248
let alice_account = atr. account ( ) . await ?;
1249
1249
let bob_account = btr. account ( ) . await ?;
1250
- let sessions = alice_account. create_session_for ( bob_account) . await ;
1250
+ let sessions =
1251
+ alice_account. create_session_for_test_helper ( bob_account) . await ;
1251
1252
Ok ( ( btr, sessions) )
1252
1253
} )
1253
1254
. await ?;
@@ -1845,7 +1846,7 @@ mod tests {
1845
1846
. with_transaction ( |mut tr| async {
1846
1847
let alice_account = tr. account ( ) . await ?;
1847
1848
let ( alice_session, _) =
1848
- alice_account. create_session_for ( & mut second_account) . await ;
1849
+ alice_account. create_session_for_test_helper ( & mut second_account) . await ;
1849
1850
Ok ( ( tr, alice_session) )
1850
1851
} )
1851
1852
. await
@@ -2068,7 +2069,8 @@ mod tests {
2068
2069
. with_transaction ( |mut btr| async {
2069
2070
let alice_account = atr. account ( ) . await ?;
2070
2071
let bob_account = btr. account ( ) . await ?;
2071
- let sessions = alice_account. create_session_for ( bob_account) . await ;
2072
+ let sessions =
2073
+ alice_account. create_session_for_test_helper ( bob_account) . await ;
2072
2074
Ok ( ( btr, sessions) )
2073
2075
} )
2074
2076
. await ?;
Original file line number Diff line number Diff line change @@ -980,7 +980,10 @@ impl Account {
980
980
#[ cfg( any( test, feature = "testing" ) ) ]
981
981
#[ allow( dead_code) ]
982
982
/// Testing only helper to create a session for the given Account
983
- pub async fn create_session_for ( & mut self , other : & mut Account ) -> ( Session , Session ) {
983
+ pub async fn create_session_for_test_helper (
984
+ & mut self ,
985
+ other : & mut Account ,
986
+ ) -> ( Session , Session ) {
984
987
use ruma:: events:: dummy:: ToDeviceDummyEventContent ;
985
988
986
989
other. generate_one_time_keys_helper ( 1 ) ;
Original file line number Diff line number Diff line change @@ -854,7 +854,7 @@ mod tests {
854
854
. store
855
855
. with_transaction ( |mut tr| async {
856
856
let manager_account = tr. account ( ) . await . unwrap ( ) ;
857
- let res = bob. create_session_for ( manager_account) . await ;
857
+ let res = bob. create_session_for_test_helper ( manager_account) . await ;
858
858
Ok ( ( tr, res) )
859
859
} )
860
860
. await
You can’t perform that action at this time.
0 commit comments