Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(saas_mode): filter rpc noise from cluster log tails

Steven Enamakeldb4233e7cc78
diff --git a/tests/saas_mode/cluster.rs b/tests/saas_mode/cluster.rs
index fc20f346da..9357769b96 100644
--- a/tests/saas_mode/cluster.rs
+++ b/tests/saas_mode/cluster.rs
@@ -40,8 +40,12 @@ struct Node {
impl Node {
fn log_tail(&self) -> String {
let log = std::fs::read_to_string(&self.log).unwrap_or_default();
- let lines: Vec<&str> = log.lines().collect();
- lines[lines.len().saturating_sub(60)..].join("\n")
+ // The polling RPCs drown everything else out.
+ let lines: Vec<&str> = log
+ .lines()
+ .filter(|line| !line.contains("rpc_handler [rpc]"))
+ .collect();
+ lines[lines.len().saturating_sub(80)..].join("\n")
}
fn kill(&mut self) {