removing errors for the sake of testing
This commit is contained in:
parent
960abac7d9
commit
4d85c094cc
@ -20,8 +20,8 @@ pub fn hyper_resp() -> hyper::Response<hyper::Body> {
|
||||
|
||||
|
||||
#[cfg(test)]
|
||||
pub async fn tmp_channel_params(p: &mysql_async::Pool, chan_name: &'static str) -> crate::channels::Channel {
|
||||
use crate::channels::{Channel, ChannelType};
|
||||
pub async fn tmp_channel_params(p: &mysql_async::Pool, chan_name: &'static str) -> db::channels::Channel {
|
||||
use db::channels::{Channel, TEXT_CHANNEL};
|
||||
use mysql_async::{params, prelude::Queryable};
|
||||
|
||||
let conn = p.get_conn().await.unwrap();
|
||||
@ -32,7 +32,7 @@ pub async fn tmp_channel_params(p: &mysql_async::Pool, chan_name: &'static str)
|
||||
Channel {
|
||||
id: 0,
|
||||
name: chan_name.into(),
|
||||
kind: ChannelType::Text,
|
||||
description: "no description for testing".into()
|
||||
kind: TEXT_CHANNEL,
|
||||
description: Some("no description for testing".into())
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user