Skip to content

Commit

Permalink
Coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Heinz N. Gies <[email protected]>
  • Loading branch information
Licenser authored and darach committed Apr 10, 2024
1 parent a0d5643 commit 99edaad
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions tremor-connectors/src/harness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,6 @@ impl Harness {
while self.status().await?.connectivity() != &Connectivity::Connected {
// TODO create my own future here that succeeds on poll when status is connected
tokio::time::sleep(Duration::from_millis(100)).await;
// Ensure ticks happening so we can trigger tick based events while waiting
self.signal_tick_to_sink().await?;
}
Ok(())
}
Expand Down Expand Up @@ -416,9 +414,7 @@ impl TestPipeline {
error!("Oh no error in test: {e}");
}
}
other => {
debug!("Ignoring message: {:?}", other);
}
_ => (),
}
}
});
Expand Down Expand Up @@ -479,11 +475,9 @@ impl TestPipeline {
Err(TryRecvError::Empty) => match self.rx_cf.try_recv() {
Ok(contraflow::Msg::Insight(event)) => Ok(Some(event)),
Err(TryRecvError::Empty) => Ok(None),
Err(TryRecvError::Disconnected) => {
Err(GenericImplementationError::ChannelEmpty.into())
}
Err(e) => Err(e.into()),
},
Err(TryRecvError::Disconnected) => Err(GenericImplementationError::ChannelEmpty.into()),
Err(e) => Err(e.into()),
}
}

Expand Down

0 comments on commit 99edaad

Please sign in to comment.