Skip to content

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

test(storage): reorder legacy profile boot assertions

Steven Enamakel8d01879f9355
diff --git a/tests/storage_legacy_profile_boot_e2e.rs b/tests/storage_legacy_profile_boot_e2e.rs
index 3d5d9a7edf..a217dd01a7 100644
--- a/tests/storage_legacy_profile_boot_e2e.rs
+++ b/tests/storage_legacy_profile_boot_e2e.rs
@@ -228,6 +228,23 @@ fn desktop_boot_reads_a_preserved_existing_v1_profile_database() {
dispatch,
owner_workspace,
);
+ let approvals =
+ openhuman_core::security::approval::store::list_pending(&config).unwrap();
+ assert_eq!(
+ approvals.len(),
+ 1,
+ "approval owner did not read the v1 database record"
+ );
+ assert_eq!(approvals[0].request_id, "fixture-approval");
+ let flows = openhuman_core::flows::ops::flows_list(&config)
+ .await
+ .unwrap();
+ assert!(
+ serde_json::to_string(&flows.value)
+ .unwrap()
+ .contains("fixture-flow"),
+ "flow owner did not read the v1 database record: {flows:?}"
+ );
let listed = thread_store.list_threads().unwrap();
assert_eq!(
listed.len(),
@@ -250,23 +267,6 @@ fn desktop_boot_reads_a_preserved_existing_v1_profile_database() {
);
assert_eq!(messages[0].id, "fixture-message");
assert_eq!(messages[0].content, "historical profile message");
- let approvals =
- openhuman_core::security::approval::store::list_pending(&config).unwrap();
- assert_eq!(
- approvals.len(),
- 1,
- "approval owner did not read the v1 database record"
- );
- assert_eq!(approvals[0].request_id, "fixture-approval");
- let flows = openhuman_core::flows::ops::flows_list(&config)
- .await
- .unwrap();
- assert!(
- serde_json::to_string(&flows.value)
- .unwrap()
- .contains("fixture-flow"),
- "flow owner did not read the v1 database record: {flows:?}"
- );
},
)
.await;