Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
use super::*;
use macro_db_migrator::MACRO_DB_MIGRATIONS;
use sqlx::PgPool;
#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")]
async fn a_write_that_can_be_neither_queued_nor_undone_fails_the_request(pool: PgPool) {
pool.close().await;
let response = undo_unsent_write(
&pool,
Uuid::now_v7(),
&[Uuid::now_v7()],
&[Uuid::now_v7()],
Uuid::now_v7(),
)
.await
.unwrap_err();
assert_eq!(response.status(), StatusCode::INTERNAL_SERVER_ERROR);
}