Skip to content

Commit

Permalink
Fix documentation for Cassandra module
Browse files Browse the repository at this point in the history
  • Loading branch information
maximevw committed May 14, 2024
1 parent 5479ced commit 437abf6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/modules/databases/cassandra.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
This example connects to the Cassandra Cluster, creates a keyspaces and asserts that is has been created.

<!--codeinclude-->
[Building CqlSession](../../../modules/cassandra/src/test/java/org/testcontainers/containers/CassandraDriver3Test.java) inside_block:cassandra
[Building CqlSession](../../../modules/cassandra/src/test/java/org/testcontainers/containers/CassandraDriver4Test.java) inside_block:cassandra
<!--/codeinclude-->

!!! warning
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ public class CassandraDriver4Test {
@Test
public void testCassandraGetContactPoint() {
try (
// cassandra {
CqlSession session = CqlSession
.builder()
.addContactPoint(this.cassandra.getContactPoint())
.withLocalDatacenter(this.cassandra.getLocalDatacenter())
.build()
// }
) {
session.execute(
"CREATE KEYSPACE IF NOT EXISTS test WITH replication = \n" +
Expand Down

0 comments on commit 437abf6

Please sign in to comment.