summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/channel/handlers/send/test.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/channel/handlers/send/test.rs b/src/channel/handlers/send/test.rs
index 7204ca4..d77e07d 100644
--- a/src/channel/handlers/send/test.rs
+++ b/src/channel/handlers/send/test.rs
@@ -108,13 +108,12 @@ async fn deleted_channel() {
// Call the endpoint
let sent_at = fixtures::now();
- let channel = channel::Id::generate();
let request = super::Request {
body: fixtures::message::propose(),
};
let super::Error(error) = super::handler(
State(app),
- Path(channel.clone()),
+ Path(channel.id.clone()),
sent_at,
sender,
Json(request),
@@ -126,6 +125,6 @@ async fn deleted_channel() {
assert!(matches!(
error,
- SendError::ChannelNotFound(error_channel) if channel == error_channel
+ SendError::ChannelNotFound(error_channel) if channel.id == error_channel
));
}