Fix for broken tests

This commit is contained in:
ClementTsang 2019-10-20 01:13:25 -04:00
parent 9222876543
commit d1089cacf7
1 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ use std::process::Command;
#[test] #[test]
fn test_small_rate() -> Result<(), Box<dyn std::error::Error>> { fn test_small_rate() -> Result<(), Box<dyn std::error::Error>> {
Command::new("./target/debug/bottom") Command::new("./target/debug/btm")
.arg("-r") .arg("-r")
.arg("249") .arg("249")
.assert() .assert()
@ -17,7 +17,7 @@ fn test_small_rate() -> Result<(), Box<dyn std::error::Error>> {
#[test] #[test]
fn test_large_rate() -> Result<(), Box<dyn std::error::Error>> { fn test_large_rate() -> Result<(), Box<dyn std::error::Error>> {
Command::new("./target/debug/bottom") Command::new("./target/debug/btm")
.arg("-r") .arg("-r")
.arg("18446744073709551616") .arg("18446744073709551616")
.assert() .assert()
@ -29,7 +29,7 @@ fn test_large_rate() -> Result<(), Box<dyn std::error::Error>> {
#[test] #[test]
fn test_negative_rate() -> Result<(), Box<dyn std::error::Error>> { fn test_negative_rate() -> Result<(), Box<dyn std::error::Error>> {
// This test should auto fail due to how clap works // This test should auto fail due to how clap works
Command::new("./target/debug/bottom") Command::new("./target/debug/btm")
.arg("-r") .arg("-r")
.arg("-1000") .arg("-1000")
.assert() .assert()
@ -41,7 +41,7 @@ fn test_negative_rate() -> Result<(), Box<dyn std::error::Error>> {
#[test] #[test]
fn test_invalid_rate() -> Result<(), Box<dyn std::error::Error>> { fn test_invalid_rate() -> Result<(), Box<dyn std::error::Error>> {
Command::new("./target/debug/bottom") Command::new("./target/debug/btm")
.arg("-r") .arg("-r")
.arg("100-1000") .arg("100-1000")
.assert() .assert()