Skip to content

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

test(e2e): add assertion for storage clearing after published runs test

Steven Enamakel6fade36b09ee
diff --git a/tests/tinyflows_published_runs_e2e.rs b/tests/tinyflows_published_runs_e2e.rs
index 701a83f285..57a6b4d344 100644
--- a/tests/tinyflows_published_runs_e2e.rs
+++ b/tests/tinyflows_published_runs_e2e.rs
@@ -298,5 +298,11 @@ async fn published_runs_use_scoped_host_capabilities_and_persist_lifecycle() {
.await;
assert_eq!(cancelled_row["status"], "cancelled");
+ // Switching the host back to workspace storage must not expose workflows
+ // that the published module wrote through the installed backend callback.
+ assert!(openhuman_core::storage::clear());
+ let fallback_flows = ok(addr, TEST_TOKEN, 12, "openhuman.flows_list", json!({})).await;
+ assert_eq!(fallback_flows.as_array().map(Vec::len), Some(0));
+
server.abort();
}