Skip to content

Commit

Permalink
use isEmpty instead of equal to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangxb1987 committed Jun 15, 2017
1 parent 7515a5b commit 4c792b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class LocalCheckpointSuite extends SparkFunSuite with LocalSparkContext {
bmm.removeBlock(blockId)
// Wait until the block has been removed successfully.
eventually(timeout(1 seconds), interval(100 milliseconds)) {
assert(bmm.getBlockStatus(blockId).size == 0)
assert(bmm.getBlockStatus(blockId).isEmpty)
}
try {
rdd.collect()
Expand Down

0 comments on commit 4c792b9

Please sign in to comment.