fix: Only test querier panic logging; router2 and ingester2 now exit on panic
parent
b5464aa82e
commit
1794147b3c
|
@ -14,17 +14,6 @@ pub async fn test_panic() {
|
|||
&mut cluster,
|
||||
vec![Step::Custom(Box::new(move |state: &mut StepTestState| {
|
||||
async move {
|
||||
let router = state.cluster().router();
|
||||
assert_panic_logging(router.router_grpc_connection(), router.log_path().await)
|
||||
.await;
|
||||
|
||||
let ingester = state.cluster().ingester();
|
||||
assert_panic_logging(
|
||||
ingester.ingester_grpc_connection(),
|
||||
ingester.log_path().await,
|
||||
)
|
||||
.await;
|
||||
|
||||
let querier = state.cluster().querier();
|
||||
assert_panic_logging(querier.querier_grpc_connection(), querier.log_path().await)
|
||||
.await;
|
||||
|
@ -43,7 +32,7 @@ async fn assert_panic_logging(connection: Connection, log_path: Box<Path>) {
|
|||
if let influxdb_iox_client::error::Error::Internal(err) = err {
|
||||
assert_eq!(&err.message, "This is a test panic");
|
||||
} else {
|
||||
panic!("wrong error type");
|
||||
panic!("wrong error type. got {err:?}");
|
||||
}
|
||||
|
||||
// check logs
|
||||
|
|
Loading…
Reference in New Issue