From cd9d676a1e14646b9d0129b25404f622433acfe3 Mon Sep 17 00:00:00 2001 From: shockrah Date: Tue, 17 Nov 2020 23:46:40 -0800 Subject: [PATCH] Removal of unused test --- server-api/src/testing/mod.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/server-api/src/testing/mod.rs b/server-api/src/testing/mod.rs index 8fedc84..38e4837 100644 --- a/server-api/src/testing/mod.rs +++ b/server-api/src/testing/mod.rs @@ -18,21 +18,3 @@ pub fn hyper_resp() -> hyper::Response { } - -#[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()) - } -}