@@ -1921,7 +1921,7 @@ mod tests {
19211921 assert ! ( Arc :: ptr_eq( & stream1, & stream2) ) ;
19221922
19231923 // Verify the map contains only one entry
1924- let guard = streams. read ( ) . expect ( "Failed to acquire read lock" ) ;
1924+ let guard = streams. read ( ) ;
19251925 assert_eq ! ( guard. len( ) , 1 ) ;
19261926 }
19271927
@@ -1934,7 +1934,7 @@ mod tests {
19341934 let ingestor_id = Some ( "new_ingestor" . to_owned ( ) ) ;
19351935
19361936 // Assert the stream doesn't exist already
1937- let mut guard = streams. write ( ) . expect ( "Failed to acquire read lock" ) ;
1937+ let mut guard = streams. write ( ) ;
19381938 assert_eq ! ( guard. len( ) , 0 ) ;
19391939 assert ! (
19401940 !guard
@@ -1957,7 +1957,7 @@ mod tests {
19571957 assert_eq ! ( stream. ingestor_id, ingestor_id) ;
19581958
19591959 // Assert that the stream is created
1960- let guard = streams. read ( ) . expect ( "Failed to acquire read lock" ) ;
1960+ let guard = streams. read ( ) ;
19611961 assert_eq ! ( guard. len( ) , 1 ) ;
19621962 assert ! ( guard. get( DEFAULT_TENANT ) . unwrap( ) . contains_key( stream_name) ) ;
19631963 }
@@ -2004,7 +2004,7 @@ mod tests {
20042004 assert ! ( Arc :: ptr_eq( & stream1, & stream2) ) ;
20052005
20062006 // Verify the map contains only one entry
2007- let guard = streams. read ( ) . expect ( "Failed to acquire read lock" ) ;
2007+ let guard = streams. read ( ) ;
20082008 assert_eq ! ( guard. len( ) , 1 ) ;
20092009 }
20102010}
0 commit comments