Began moving database communication into a client.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
This commit is contained in:
14
tests/client_test.rs
Normal file
14
tests/client_test.rs
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user