Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
Add long request-timeout for CI testing
Browse files Browse the repository at this point in the history
  • Loading branch information
alexheretic committed Nov 6, 2017
1 parent 2d145ed commit b46ce2a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,13 @@ mod server;
mod test;

// Timeout = 1.5s (totally arbitrary).
#[cfg(not(test))]
const COMPILER_TIMEOUT: u64 = 1500;

// Timeout for potenially very slow CPU CI boxes
#[cfg(test)]
const COMPILER_TIMEOUT: u64 = 3_600_000;

const CRATE_BLACKLIST: [&'static str; 10] = [
"libc", "typenum", "alloc", "idna", "openssl", "libunicode_normalization", "serde",
"serde_json", "librustc_serialize", "libunicode_segmentation",
Expand Down Expand Up @@ -92,10 +97,10 @@ fn version() -> &'static str {
}

fn help() -> &'static str {
r#"
r#"
--version or -V to print the version and commit info
--help or -h for this message
Other input starts the RLS in command line mode
No input starts the RLS as a language server
No input starts the RLS as a language server
"#
}

0 comments on commit b46ce2a

Please sign in to comment.