From 4d85c094ccff362553f8520a86a0171b0a27f30a Mon Sep 17 00:00:00 2001 From: shockrah Date: Wed, 4 Nov 2020 00:19:50 -0800 Subject: [PATCH] removing errors for the sake of testing --- server-api/src/testing/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server-api/src/testing/mod.rs b/server-api/src/testing/mod.rs index 31cdd81..8fedc84 100644 --- a/server-api/src/testing/mod.rs +++ b/server-api/src/testing/mod.rs @@ -20,8 +20,8 @@ pub fn hyper_resp() -> hyper::Response { #[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()) } }