Skip to content

Commit 23b007a

Browse files
committed
SPARKC-642 ReplicaRepartitionedCassandraRDDSpec fix followup
Fix host matching in ReplicaRepartitionedCassandraRDDSpec for 2.5 - compare String to String insteadof INetAddress to String.
1 parent 204b172 commit 23b007a

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.map(_.getHostAddress) should contain(e.endpoints.head)
67+
conn.hostAddresses.map(_.getHostAddress) should contain(e.endpoints.head.getHostAddress)
6868
case _ =>
6969
fail("Unable to get endpoints on repartitioned RDD, This means preferred locations will be broken")
7070
}

0 commit comments

Comments
 (0)