crypto: Fix the sqlite tests.

master
Damir Jelić 2020-04-03 10:39:07 +02:00
parent 670761376d
commit 7c6d0d14dd
2 changed files with 6 additions and 1 deletions

View File

@ -510,7 +510,6 @@ impl AsyncClient {
}
if self.base_client.read().await.should_query_keys().await {
// TODO enable this
let _ = self.keys_query().await;
}
}

View File

@ -436,6 +436,8 @@ impl std::fmt::Debug for SqliteStore {
#[cfg(test)]
mod test {
use olm_rs::outbound_group_session::OlmOutboundGroupSession;
use ruma_client_api::r0::keys::SignedKey;
use std::collections::HashMap;
use std::sync::Arc;
use tempfile::tempdir;
use tokio::sync::Mutex;
@ -483,6 +485,10 @@ mod test {
.unwrap()
.1
.to_owned();
let one_time_key = SignedKey {
key: one_time_key,
signatures: HashMap::new(),
};
let sender_key = bob.identity_keys().curve25519().to_owned();
let session = alice
.create_outbound_session(&sender_key, &one_time_key)