Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
15 lines
369 B
Rust
15 lines
369 B
Rust
use morethantext::MoreThanText;
|
|
use std::collections::HashSet;
|
|
|
|
#[test]
|
|
fn are_session_ids_unique() {
|
|
let count = 10;
|
|
let mtt = MoreThanText::new();
|
|
let mut ids: HashSet<String> = HashSet::new();
|
|
for _ in 0..count {
|
|
let client = mtt.client();
|
|
ids.insert(client.session_id());
|
|
}
|
|
assert_eq!(ids.len(), count, "ids = {:?}", ids);
|
|
}
|