Skip to content

Commit 996d6f9

Browse files
committed
fix TimeStampedWeakValueHashMap test
1 parent 9dfa4e7 commit 996d6f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/test/scala/org/apache/spark/util/TimeStampedHashMapSuite.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ class TimeStampedHashMapSuite extends FunSuite {
105105
map("k1") = strongRef
106106
map("k2") = "v2"
107107
map("k3") = "v3"
108-
assert(map("k1") === strongRef)
108+
val isEquals = map("k1") == strongRef
109+
assert(isEquals)
109110

110111
// clear strong reference to "k1"
111112
strongRef = null

0 commit comments

Comments
 (0)