The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(storage_schema): remove outdated storage schema tests
Steven Enamakel883f55649acd
diff --git a/crates/openhuman-core/src/platform/cost/storage_schema_tests.rs b/crates/openhuman-core/src/platform/cost/storage_schema_tests.rsindex 74a0559a91..f5bba21201 100644--- a/crates/openhuman-core/src/platform/cost/storage_schema_tests.rs+++ b/crates/openhuman-core/src/platform/cost/storage_schema_tests.rs@@ -1,46 +1,12 @@use super::*;-use serde_json::json;-use tinystoragedrivers::Meta;--fn source(id: &str, body: Value) -> SourceRecord {- SourceRecord {- id: id.to_string(),- body,- meta: Meta::unknown(),- }-}--#[test]-fn the_usage_timestamp_is_carried_once_as_milliseconds() {- let out = records_v2(vec![source(- "r1",- json!({- "id": "r1", "session_id": "s",- "usage": { "model": "m", "timestamp": "1970-01-01T00:00:02Z", "cost_usd": 0.5 },- "ts_ms": 2000,- }),- )])- .unwrap();- assert_eq!(out[0].collection, RECORDS);- assert_eq!(out[0].id, "r1");- assert_eq!(- out[0].body,- json!({- "id": "r1", "session_id": "s",- "usage": { "model": "m", "cost_usd": 0.5 },- "ts_ms": 2000,- })- );-}#[test]-fn a_row_without_ts_ms_takes_it_from_the_timestamp() {- let out = records_v2(vec![source(- "r2",- json!({ "id": "r2", "session_id": "s", "usage": { "timestamp": "1970-01-01T00:00:03Z" } }),- )])- .unwrap();- assert_eq!(out[0].body["ts_ms"], 3000);+fn cost_collection_declares_its_time_index() {+ let specs = collection_specs();+ assert_eq!(specs.len(), 1);+ assert_eq!(specs[0].name, RECORDS);+ assert_eq!(specs[0].indexes[0].name, "by_time");+ specs[0].validate().unwrap();}#[test]@@ -56,8 +22,3 @@ fn a_record_round_trips_through_its_body() {record.usage.timestamp.timestamp_millis());}--#[test]-fn the_schema_composes_under_its_owner() {- tinystoragedrivers::schema::Registry::compose([storage_schema()]).unwrap();-}