Skip to content

Commit

Permalink
enable schema awaiter
Browse files Browse the repository at this point in the history
  • Loading branch information
conorbros committed Feb 12, 2024
1 parent 15032df commit 4f6cdc1
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions shotover-proxy/tests/cassandra_int_tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1038,8 +1038,7 @@ async fn cassandra_5(#[case] driver: CassandraDriver) {
shotover.shutdown_and_then_consume_events(&[]).await;
}

#[rstest]
#[case::scylla(Scylla)]
#[apply(all_cassandra_drivers)]
#[tokio::test(flavor = "multi_thread")]
async fn cassandra_5_cluster(#[case] driver: CassandraDriver) {
let _compose = docker_compose("tests/test-configs/cassandra/cluster-v5/docker-compose.yaml");
Expand All @@ -1048,7 +1047,15 @@ async fn cassandra_5_cluster(#[case] driver: CassandraDriver) {
.start()
.await;

let connection_creator = || CassandraConnectionBuilder::new("172.16.1.2", 9044, driver).build();
let connection_creator = || async {
let mut connection = CassandraConnectionBuilder::new("127.0.0.1", 9042, driver)
.build()
.await;
connection
.enable_schema_awaiter("172.16.1.2:9044", None)
.await;
connection
};

let connection = connection_creator().await;

Expand Down

0 comments on commit 4f6cdc1

Please sign in to comment.