Skip to content

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

test(channels): fix delivery import test storage setup

Steven Enamakela6578031e130
diff --git a/crates/openhuman-core/src/channels/runtime/startup/delivery_import_tests.rs b/crates/openhuman-core/src/channels/runtime/startup/delivery_import_tests.rs
index 7ae9c06426..a77f58fdf2 100644
--- a/crates/openhuman-core/src/channels/runtime/startup/delivery_import_tests.rs
+++ b/crates/openhuman-core/src/channels/runtime/startup/delivery_import_tests.rs
@@ -1,7 +1,7 @@
use super::*;
use std::sync::Arc;
use tinychannels_bus::{ChannelOutboundIntent, DeliveryDurability, OutboundPayload};
-use tinystoragedrivers::{Scope, StorageBackend};
+use crate::storage::{Scope, StorageBackend};
fn entry(id: &str, at: u64) -> DeliveryQueueEntry {
DeliveryQueueEntry::new(
@@ -36,7 +36,11 @@ impl Rig {
fn rig() -> Rig {
let dir = tempfile::tempdir().unwrap();
let url = format!("sqlite:{}", dir.path().join("storage.sqlite").display());
- let backend = crate::storage::block_on(crate::storage::open(&url)).unwrap();
+ let backend = crate::storage::block_on({
+ let url = url.clone();
+ async move { crate::storage::open(&url).await }
+ })
+ .unwrap();
Rig {
_dir: dir,
backend,