test: use proper ignore instead of commenting out
parent
a5c74f2798
commit
a72bacae67
|
@ -155,23 +155,28 @@ mod tests {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// blocks until https://github.com/influxdata/influxdb_iox/issues/2189 is solved
|
#[tokio::test]
|
||||||
// #[tokio::test]
|
#[ignore = "waits forever to connect until https://github.com/influxdata/influxdb_iox/issues/2189 is solved"]
|
||||||
// async fn test_reading_kafka() {
|
async fn test_reading_kafka() {
|
||||||
// let factory = WriteBufferConfigFactory::new();
|
let factory = WriteBufferConfigFactory::new();
|
||||||
|
|
||||||
// let server_id = ServerId::try_from(1).unwrap();
|
let server_id = ServerId::try_from(1).unwrap();
|
||||||
|
|
||||||
// let mut rules = DatabaseRules::new(DatabaseName::new("foo").unwrap());
|
let mut rules = DatabaseRules::new(DatabaseName::new("foo").unwrap());
|
||||||
// rules.write_buffer_connection = Some(WriteBufferConnection::Reading("test".to_string()));
|
rules.write_buffer_connection = Some(WriteBufferConnection::Reading("test".to_string()));
|
||||||
|
|
||||||
// if let WriteBufferConfig::Reading(conn) = factory.new_config(server_id, &rules).await.unwrap().unwrap() {
|
if let WriteBufferConfig::Reading(conn) = factory
|
||||||
// let conn = conn.lock().await;
|
.new_config(server_id, &rules)
|
||||||
// assert_eq!(conn.type_name(), "kafka");
|
.await
|
||||||
// } else {
|
.unwrap()
|
||||||
// panic!("not a reading connection");
|
.unwrap()
|
||||||
// }
|
{
|
||||||
// }
|
let conn = conn.lock().await;
|
||||||
|
assert_eq!(conn.type_name(), "kafka");
|
||||||
|
} else {
|
||||||
|
panic!("not a reading connection");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn test_writing_mock() {
|
async fn test_writing_mock() {
|
||||||
|
|
Loading…
Reference in New Issue