summaryrefslogtreecommitdiff
path: root/src/channel/routes
diff options
context:
space:
mode:
Diffstat (limited to 'src/channel/routes')
-rw-r--r--src/channel/routes/test/on_create.rs7
-rw-r--r--src/channel/routes/test/on_send.rs7
2 files changed, 6 insertions, 8 deletions
diff --git a/src/channel/routes/test/on_create.rs b/src/channel/routes/test/on_create.rs
index df23deb..23885c0 100644
--- a/src/channel/routes/test/on_create.rs
+++ b/src/channel/routes/test/on_create.rs
@@ -50,9 +50,8 @@ async fn duplicate_name() {
// Verify the structure of the response
- fixtures::error::expected!(
+ assert!(matches!(
error,
- app::CreateError::DuplicateName(name),
- assert_eq!(request.name, name),
- );
+ app::CreateError::DuplicateName(name) if request.name == name
+ ));
}
diff --git a/src/channel/routes/test/on_send.rs b/src/channel/routes/test/on_send.rs
index 6690374..93a5480 100644
--- a/src/channel/routes/test/on_send.rs
+++ b/src/channel/routes/test/on_send.rs
@@ -141,9 +141,8 @@ async fn nonexistent_channel() {
// Verify the structure of the response
- fixtures::error::expected!(
+ assert!(matches!(
error,
- app::EventsError::ChannelNotFound(error_channel),
- assert_eq!(channel, error_channel)
- );
+ app::EventsError::ChannelNotFound(error_channel) if channel == error_channel
+ ));
}