summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/channel/routes/test/on_send.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/channel/routes/test/on_send.rs b/src/channel/routes/test/on_send.rs
index 3fe3d1e..293cc56 100644
--- a/src/channel/routes/test/on_send.rs
+++ b/src/channel/routes/test/on_send.rs
@@ -24,10 +24,8 @@ async fn messages_in_order() {
(fixtures::now(), fixtures::message::propose()),
];
- for (sent_at, message) in &requests {
- let request = routes::SendRequest {
- message: message.clone(),
- };
+ for (sent_at, body) in &requests {
+ let request = routes::SendRequest { body: body.clone() };
routes::on_send(
State(app.clone()),
@@ -75,7 +73,7 @@ async fn nonexistent_channel() {
let sent_at = fixtures::now();
let channel = channel::Id::generate();
let request = routes::SendRequest {
- message: fixtures::message::propose(),
+ body: fixtures::message::propose(),
};
let routes::SendErrorResponse(error) = routes::on_send(
State(app),