Files
matrix-rust-sdk/testing/matrix-sdk-integration-testing/src/tests/auth.rs
Benjamin Bouvier 664c71b822 integration tests: make randomize_username() the default
Most tests would randomize the username when creating a
`TestClientBuilder`; make it the default, since it's a sensible choice,
and avoids interference between different tests / test runs.

A single test required an actual non-randomized username, so a specific
way to opt out from this new default behavior has been introduced.
2024-07-03 11:30:42 +02:00

13 lines
397 B
Rust

use anyhow::Result;
use crate::helpers::TestClientBuilder;
#[tokio::test(flavor = "multi_thread")]
async fn register_login_is_one_device() -> Result<()> {
// registers a fresh client and makes sure we are logged in
let client = TestClientBuilder::new("alice").use_sqlite().build().await?;
let devices = client.devices().await?.devices;
assert_eq!(devices.len(), 1);
Ok(())
}