From 3f417fe160b2ab6ab9c3c345ee0fe5444e82d40a Mon Sep 17 00:00:00 2001 From: Valdemar Erk Date: Wed, 4 Sep 2024 20:32:12 +0200 Subject: [PATCH] fix test --- twilight-cache-inmemory/src/event/guild.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/twilight-cache-inmemory/src/event/guild.rs b/twilight-cache-inmemory/src/event/guild.rs index 8d8c9b15d44..e96004e9dbb 100644 --- a/twilight-cache-inmemory/src/event/guild.rs +++ b/twilight-cache-inmemory/src/event/guild.rs @@ -181,7 +181,10 @@ mod tests { VerificationLevel, }, id::Id, - util::datetime::{Timestamp, TimestampParseError}, + util::{ + datetime::{Timestamp, TimestampParseError}, + mustbe::MustBeBool, + }, }; #[allow(clippy::too_many_lines)] @@ -358,7 +361,7 @@ mod tests { cache.update(&GuildCreate::Unavailable( twilight_model::guild::UnavailableGuild { id: guild.id, - unavailable: true, + unavailable: MustBeBool, }, )); assert!(cache.unavailable_guilds.get(&guild.id).is_some()); @@ -370,7 +373,7 @@ mod tests { cache.update(&GuildCreate::Unavailable( twilight_model::guild::UnavailableGuild { id: guild.id, - unavailable: true, + unavailable: MustBeBool, }, )); assert!(cache.unavailable_guilds.get(&guild.id).is_some());