pub async fn wait_for_connection_error<F>( driver: &mut Driver<'_>, duration: Duration, f: F, ) -> Result<bool>where F: ConnectionPredicate,