Removal of unused test
This commit is contained in:
parent
eaec922693
commit
cd9d676a1e
@ -18,21 +18,3 @@ pub fn hyper_resp() -> hyper::Response<hyper::Body> {
|
||||
}
|
||||
|
||||
|
||||
|
||||
#[cfg(test)]
|
||||
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();
|
||||
let _ = conn.prep_exec(
|
||||
"INSERT INTO channels (name, description, kind) VALUES (:name, :description, :kind)",
|
||||
params!{"name" => chan_name, "kind" => 0, "description" => "no description for testing"}).await;
|
||||
|
||||
Channel {
|
||||
id: 0,
|
||||
name: chan_name.into(),
|
||||
kind: TEXT_CHANNEL,
|
||||
description: Some("no description for testing".into())
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user