Skip to content

Commit

Permalink
fix: fix testings
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Dec 13, 2021
1 parent 0a792aa commit 8e44128
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ mod test {

use super::quake_rocket;

#[cfg(feature = "webserver")]
#[test]
fn hello_world() {
let client = Client::tracked(quake_rocket()).expect("valid rocket instance");
Expand All @@ -82,7 +81,6 @@ mod test {
assert_eq!(response.status(), Status::Ok);
}

#[cfg(feature = "webserver")]
#[test]
fn get_todo_entry() {
let client = Client::tracked(quake_rocket()).expect("valid rocket instance");
Expand Down
3 changes: 1 addition & 2 deletions src/server/transflow_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ mod test {
use crate::quake_rocket;
use crate::server::transflow_api::FlowRequest;

#[cfg(feature = "webserver")]
#[test]
fn transflow_translate_script() {
let client = Client::tracked(quake_rocket()).expect("valid rocket instance");
Expand All @@ -127,7 +126,7 @@ mod test {
#[test]
fn transflow_script() {
let client = Client::tracked(quake_rocket()).expect("valid rocket instance");
let mut response = client.get("/transflow/script").dispatch();
let mut response = client.get("/transflow/script/gen_code").dispatch();

let mut res = "".to_string();
let _ = response.read_to_string(&mut res);
Expand Down

0 comments on commit 8e44128

Please sign in to comment.