Skip to content

Commit

Permalink
chore: Fix kubernetes test framework (#6982)
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Sichert <mail@pablosichert.com>
  • Loading branch information
pablosichert committed Apr 2, 2021
1 parent e27d5ff commit 414f33f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/k8s-e2e-tests/tests/vector-agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ async fn pod_filtering() -> Result<(), Box<dyn std::error::Error>> {
let line = tokio::select! {
result = stop_rx.next() => {
result.unwrap();
log_reader.kill()?;
log_reader.kill().await?;
continue;
}
line = log_reader.read_line() => line,
Expand All @@ -671,7 +671,7 @@ async fn pod_filtering() -> Result<(), Box<dyn std::error::Error>> {
lines_till_we_give_up -= 1;
if lines_till_we_give_up == 0 {
println!("Giving up");
log_reader.kill()?;
log_reader.kill().await?;
break;
}

Expand Down Expand Up @@ -837,7 +837,7 @@ async fn custom_selectors() -> Result<(), Box<dyn std::error::Error>> {
let line = tokio::select! {
result = stop_rx.next() => {
result.unwrap();
log_reader.kill()?;
log_reader.kill().await?;
continue;
}
line = log_reader.read_line() => line,
Expand All @@ -851,7 +851,7 @@ async fn custom_selectors() -> Result<(), Box<dyn std::error::Error>> {
lines_till_we_give_up -= 1;
if lines_till_we_give_up == 0 {
println!("Giving up");
log_reader.kill()?;
log_reader.kill().await?;
break;
}

Expand Down Expand Up @@ -978,7 +978,7 @@ async fn container_filtering() -> Result<(), Box<dyn std::error::Error>> {
let line = tokio::select! {
result = stop_rx.next() => {
result.unwrap();
log_reader.kill()?;
log_reader.kill().await?;
continue;
}
line = log_reader.read_line() => line,
Expand All @@ -992,7 +992,7 @@ async fn container_filtering() -> Result<(), Box<dyn std::error::Error>> {
lines_till_we_give_up -= 1;
if lines_till_we_give_up == 0 {
println!("Giving up");
log_reader.kill()?;
log_reader.kill().await?;
break;
}

Expand Down Expand Up @@ -1128,7 +1128,7 @@ async fn glob_pattern_filtering() -> Result<(), Box<dyn std::error::Error>> {
let line = tokio::select! {
result = stop_rx.next() => {
result.unwrap();
log_reader.kill()?;
log_reader.kill().await?;
continue;
}
line = log_reader.read_line() => line,
Expand All @@ -1142,7 +1142,7 @@ async fn glob_pattern_filtering() -> Result<(), Box<dyn std::error::Error>> {
lines_till_we_give_up -= 1;
if lines_till_we_give_up == 0 {
println!("Giving up");
log_reader.kill()?;
log_reader.kill().await?;
break;
}

Expand Down

0 comments on commit 414f33f

Please sign in to comment.