fix: Only test querier panic logging; router2 and ingester2 now exit on panic

pull/24376/head
Carol (Nichols || Goulding) 2023-02-06 15:06:30 -05:00
parent b5464aa82e
commit 1794147b3c
No known key found for this signature in database
GPG Key ID: E907EE5A736F87D4
1 changed files with 1 additions and 12 deletions

View File

@ -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