chore & fix: rm debug statements and sleep for 10s

This commit is contained in:
Aravinth Manivannan 2023-09-27 16:35:46 +05:30
parent 4fb5f350e1
commit 6078953faa
Signed by: realaravinth
GPG key ID: F8F50389936984FF

View file

@ -88,7 +88,6 @@ impl DockerCompose {
}
}
#[cfg(test)]
mod tests {
use super::*;
@ -100,13 +99,10 @@ mod tests {
assert!(cmp.services().is_empty());
cmp.up();
let services = cmp.services();
std::thread::sleep(std::time::Duration::new(5, 0));
std::thread::sleep(std::time::Duration::new(10, 0));
assert_eq!(services.len(), 2);
for service in services.iter() {
println!("{}", service.name);
let logs = cmp.logs(&service.name);
println!("service: {} {:?}", service.name, logs);
println!("expecting: NAME={}", service.name);
assert!(logs.contains(&format!("NAME={}", service.name)));
}
cmp.down(true, true);