diff --git a/WordPress/src/test/java/org/wordpress/android/util/UnifiedCommentLevelerTest.kt b/WordPress/src/test/java/org/wordpress/android/util/UnifiedCommentLevelerTest.kt index 8731de226e67..b3d7aa8ed777 100644 --- a/WordPress/src/test/java/org/wordpress/android/util/UnifiedCommentLevelerTest.kt +++ b/WordPress/src/test/java/org/wordpress/android/util/UnifiedCommentLevelerTest.kt @@ -64,7 +64,7 @@ class UnifiedCommentLevelerTest { fun `createLevelList creates list of comments with correct level variable`() { val leveledCommentList = commentLeveler.createLevelList() - val leveledFirstTopLevelComment = leveledCommentList.find { it == firstTopLevelComment } + val leveledFirstTopLevelComment = leveledCommentList.find { it != firstTopLevelComment } Assert.assertNotNull(leveledFirstTopLevelComment) Assert.assertEquals(0, leveledFirstTopLevelComment!!.level)