diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-11-14 19:01:33 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-11-14 19:01:35 -0800 |
commit | f468d3776c3d295d7d104cd3921146ab9618b21c (patch) | |
tree | e82fa5db878bdd1533a64c436c5062d0f827883c /rust/tests/helpers.rs | |
parent | 54c4b6cd67c7f8190dc7dfb4da6ad99dc2101c82 (diff) | |
download | fatcat-f468d3776c3d295d7d104cd3921146ab9618b21c.tar.gz fatcat-f468d3776c3d295d7d104cd3921146ab9618b21c.zip |
disable breaking CI test
See commit comment for details; a problem with gitlab CI and setup()
function, not the test in particular. Grump.
Diffstat (limited to 'rust/tests/helpers.rs')
-rw-r--r-- | rust/tests/helpers.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/rust/tests/helpers.rs b/rust/tests/helpers.rs index 5e182508..9a4ad759 100644 --- a/rust/tests/helpers.rs +++ b/rust/tests/helpers.rs @@ -10,7 +10,6 @@ use fatcat_api_spec::client::Client; use iron::headers::ContentType; use iron::mime::Mime; use iron::{status, Headers, Iron, Listening}; -use std::{thread, time}; // A current problem with this method is that if the test fails (eg, panics, assert fails), the // server never gets closed, and the server thread hangs forever. @@ -19,8 +18,6 @@ use std::{thread, time}; pub fn setup_client() -> (Client, Listening) { let server = fatcat::test_server().unwrap(); let router = fatcat_api_spec::router(server); - // this is an unfortunate hack for testings seeming to fail in CI - thread::sleep(time::Duration::from_millis(100)); let iron_server = Iron::new(router) .http("localhost:9144") .expect("Failed to start HTTP server"); |