Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(channels): add runtime limits startup tests

Steven Enamakel44ef3d6007c0
diff --git a/crates/openhuman-core/src/channels/runtime/startup/runtime_limits_tests.rs b/crates/openhuman-core/src/channels/runtime/startup/runtime_limits_tests.rs
new file mode 100644
index 0000000000..c4cf59e606
--- /dev/null
+++ b/crates/openhuman-core/src/channels/runtime/startup/runtime_limits_tests.rs
@@ -0,0 +1,12 @@
+use super::*;
+
+#[tokio::test]
+async fn runtime_limits_come_from_the_linked_channel_module() {
+ let client = crate::channels::module_fixture::client().await;
+
+ let limits = prepare_runtime_limits(&client, 1, 100)
+ .await
+ .expect("the linked module should prepare valid runtime limits");
+
+ assert_eq!(limits, (30, 64));
+}