Skip to content

Commit

Permalink
avoid print
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun committed Apr 15, 2024
1 parent 71f6ebb commit 9644cb3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/common/meta/src/kv_backend/etcd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,6 @@ impl TryFrom<DeleteRangeRequest> for Delete {
}

#[cfg(test)]
#[allow(clippy::print_stdout)]
mod tests {
use super::*;

Expand Down Expand Up @@ -640,17 +639,16 @@ mod tests {
if endpoints.is_empty() {
return None;
}

let endpoints = endpoints
.split(',')
.map(|s| s.to_string())
.collect::<Vec<String>>();

std::panic::set_hook(Box::new(|_| {
println!("panic: malformed endpoints");
}));
let client = Client::connect(endpoints, None)
.await
.expect("malformed endpoints");

Some(EtcdStore {
client,
max_txn_ops: 128,
Expand Down

0 comments on commit 9644cb3

Please sign in to comment.