summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-06-27 13:24:40 -0600
committermo khan <mo@mokhan.ca>2025-06-27 13:24:40 -0600
commit84420606035fd62bbdcacb6231b9181f197d068f (patch)
tree0dbbe29a92d090900f30c089181fa1f27f1318b5 /tests
parente970d1e29aa9a4e1a4ac6419079928b803536825 (diff)
refactor: extract create_server function to test it directly
Diffstat (limited to 'tests')
-rw-r--r--tests/main_test.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/main_test.rs b/tests/main_test.rs
index 5c6016f6..69c6eda1 100644
--- a/tests/main_test.rs
+++ b/tests/main_test.rs
@@ -1,2 +1,8 @@
#[cfg(test)]
-mod tests {}
+mod tests {
+ #[test]
+ fn test_create_server() {
+ let result = authzd::create_server();
+ assert!(result.is_ok());
+ }
+}