From 99da624c151eabf2f4d1aa1cc499d1a61c1a625a Mon Sep 17 00:00:00 2001 From: Flori Weber Date: Thu, 22 Jun 2023 18:55:26 +0200 Subject: [PATCH] Reflect changes to Channel::modify() in test --- tests/channel.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/channel.rs b/tests/channel.rs index 002ee43..b37ea3d 100644 --- a/tests/channel.rs +++ b/tests/channel.rs @@ -31,6 +31,7 @@ async fn delete_channel() { #[tokio::test] async fn modify_channel() { let mut bundle = common::setup().await; + let channel = &mut bundle.channel; let modify_data: types::ChannelModifySchema = types::ChannelModifySchema { name: Some("beepboop".to_string()), channel_type: None, @@ -50,10 +51,10 @@ async fn modify_channel() { default_thread_rate_limit_per_user: None, video_quality_mode: None, }; - let result = Channel::modify(modify_data, bundle.channel.id, &mut bundle.user) + Channel::modify(channel, modify_data, channel.id, &mut bundle.user) .await .unwrap(); - assert_eq!(result.name, Some("beepboop".to_string())); + assert_eq!(channel.name, Some("beepboop".to_string())); let permission_override = PermissionFlags::from_vec(Vec::from([ PermissionFlags::MANAGE_CHANNELS,