Test cleanup
This commit is contained in:
+9
-1
@@ -358,11 +358,19 @@ mod request {
|
||||
contact_id: &uuid::Uuid,
|
||||
message_id: &uuid::Uuid,
|
||||
) -> Result<axum::response::Response, axum::http::Error> {
|
||||
let sent = time::OffsetDateTime::now_utc();
|
||||
let sent = match super::super::super::convert_time_to_iso(sent) {
|
||||
Ok(t) => t,
|
||||
Err(err) => {
|
||||
assert!(false, "Error: {err:?}");
|
||||
String::new()
|
||||
}
|
||||
};
|
||||
let payload = serde_json::json!({
|
||||
"scheduled_message_event_id": scheduled_message_event_id,
|
||||
"response": super::super::super::test_mer_response(),
|
||||
"user_id": user_id,
|
||||
"sent": "2026-06-20T17:10:00Z",
|
||||
"sent": sent,
|
||||
"status": textsender_models::message::event::MESSAGE_EVENT_RESPONSE_STATUS_SCHEDULED,
|
||||
"contact_id": contact_id,
|
||||
"message_id": message_id
|
||||
|
||||
Reference in New Issue
Block a user