Cargo.toml: Use the tokio async test macro.

master
Damir Jelić 2020-03-16 13:24:54 +01:00
parent aa1e69e98b
commit bd53e18aa9
2 changed files with 4 additions and 5 deletions

View File

@ -35,7 +35,6 @@ cjson = { version = "0.1.0", optional = true }
tokio = { version = "0.2.13", default-features = false, features = ["sync"] }
[dev-dependencies]
tokio = { version = "0.2.13", features = ["full"] }
async-std = { version = "1.5.0", features = ["unstable", "attributes"] }
tokio = { version = "0.2.13", features = ["rt-threaded", "macros"] }
url = "2.1.1"
mockito = "0.23.3"

View File

@ -414,7 +414,7 @@ mod test {
assert!(machine.should_upload_keys());
}
#[async_std::test]
#[tokio::test]
async fn receive_keys_upload_response() {
let mut machine = OlmMachine::new(&user_id(), DEVICE_ID);
let mut response = keys_upload_response();
@ -443,7 +443,7 @@ mod test {
assert!(!machine.should_upload_keys());
}
#[async_std::test]
#[tokio::test]
async fn generate_one_time_keys() {
let mut machine = OlmMachine::new(&user_id(), DEVICE_ID);
@ -516,7 +516,7 @@ mod test {
assert!(ret.is_ok());
}
#[async_std::test]
#[tokio::test]
async fn test_keys_for_upload() {
let mut machine = OlmMachine::new(&user_id(), DEVICE_ID);
machine.uploaded_signed_key_count = Some(0);