Skip to content

Commit

Permalink
fix: IMPORTANT!! previous versions were emitting human reads [see #2]
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhall88 committed Jul 22, 2024
1 parent faec51e commit 85baec9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ mod tests {
use tempfile::TempDir;

pub fn check_internet_connection(timeout: std::time::Duration) -> bool {
use std::net::{TcpStream, SocketAddr};
use std::net::{SocketAddr, TcpStream};

let addr = "8.8.8.8:53".parse::<SocketAddr>().unwrap();
TcpStream::connect_timeout(&addr, timeout).is_ok()
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ pub fn validate_db_directory(path: &Path) -> Result<PathBuf, String> {
))
}


#[cfg(test)]
mod tests {
use super::*;
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ fn main() -> Result<()> {
tmpdir.path().join("kraken_out.fq")
};
let outfile = outfile.to_string_lossy().to_string();
kraken_cmd.extend(&["--classified-out", &outfile]);
kraken_cmd.extend(&["--unclassified-out", &outfile]);

kraken_cmd.extend(input.iter().map(|p| p.to_str().unwrap()));
info!("Running kraken2...");
Expand Down

0 comments on commit 85baec9

Please sign in to comment.