Began moving database communication into a client.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s

This commit is contained in:
2026-03-22 13:57:12 -04:00
parent 046d71e606
commit 74c3327802
3 changed files with 91 additions and 2 deletions

14
tests/client_test.rs Normal file
View File

@@ -0,0 +1,14 @@
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);
}