Fix tests
continuous-integration/drone/push Build is failing Details
continuous-integration/drone/pr Build was killed Details

This commit is contained in:
projectmoon 2021-06-02 15:14:43 +00:00
parent 0b47a5d099
commit c28d5a5c21
1 changed files with 2 additions and 1 deletions

View File

@ -49,7 +49,7 @@ fn db_path_from_env() -> String {
} }
/// The "bot" section of the config file, for bot settings. /// The "bot" section of the config file, for bot settings.
#[derive(Serialize, Deserialize, Clone, Debug)] #[derive(Serialize, Deserialize, Clone, Debug, Default)]
struct BotConfig { struct BotConfig {
/// How far back from current time should we process a message? /// How far back from current time should we process a message?
oldest_message_age: Option<u64>, oldest_message_age: Option<u64>,
@ -189,6 +189,7 @@ mod tests {
}), }),
bot: Some(BotConfig { bot: Some(BotConfig {
oldest_message_age: None, oldest_message_age: None,
..Default::default()
}), }),
}; };