Skip to content

Commit 3b42d6b

Browse files
committed
SPARKC-642 fix ReplicaRepartitionedCassandraRDDSpec
Fix host matching in ReplicaRepartitionedCassandraRDDSpec - compare String to String insteadof INetAddress to String.
1 parent c534621 commit 3b42d6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connector/src/it/scala/com/datastax/spark/connector/rdd/ReplicaRepartitionedCassandraRDDSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class ReplicaRepartitionedCassandraRDDSpec extends SparkCassandraITFlatSpecBase
6464
val someCass = repart.joinWithCassandraTable(ks, tableName)
6565
someCass.partitions.foreach {
6666
case e: EndpointPartition =>
67-
conn.hostAddresses should contain(e.endpoints.head)
67+
conn.hostAddresses.map(_.getHostAddress) should contain(e.endpoints.head)
6868
case _ =>
6969
fail("Unable to get endpoints on repartitioned RDD, This means preferred locations will be broken")
7070
}

0 commit comments

Comments
 (0)