Files
morethantext/tests/client_test.rs
Jeff Baskin 74c3327802
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
Began moving database communication into a client.
2026-03-22 13:57:12 -04:00

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);
}