Skip to content

Commit 40ba95c

Browse files
committed
format
1 parent 654cf23 commit 40ba95c

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

aimdb-client/tests/aimx_session.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,21 @@ async fn aimx_roundtrip_over_uds_production_server() {
115115
assert!(ev.get("n").is_some(), "event carries a Reading: {ev}");
116116
}
117117

118+
// Graph introspection wrappers.
119+
let nodes = conn.graph_nodes().await.expect("graph nodes");
120+
assert!(
121+
nodes.len() >= 2,
122+
"configured records should appear as nodes"
123+
);
124+
let _edges = conn.graph_edges().await.expect("graph edges");
125+
let topo = conn.graph_topo_order().await.expect("topo order");
126+
assert!(!topo.is_empty(), "topo order should list the records");
127+
128+
// Drain wrapper: cold-start creates the per-connection cursor; the response
129+
// echoes the record name.
130+
let drained = conn.drain_record("events").await.expect("drain events");
131+
assert_eq!(drained.record_name, "events");
132+
118133
// Fire-and-forget write, then a follow-up RPC. FIFO over the single
119134
// connection guarantees the write is processed before the reply returns.
120135
conn.write_record("setting", json!({ "level": 9 }))

0 commit comments

Comments
 (0)