From 47f44bcce97f88fa76574ebf4a9a66ea642a1470 Mon Sep 17 00:00:00 2001 From: Nick Bradbury Date: Thu, 16 Jan 2025 16:37:22 -0500 Subject: [PATCH] Fixed failing test due to unsupported removeLast --- .../wordpress/android/fluxc/comment/CommentSqlUtilsTest.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/fluxc/src/test/java/org/wordpress/android/fluxc/comment/CommentSqlUtilsTest.kt b/libs/fluxc/src/test/java/org/wordpress/android/fluxc/comment/CommentSqlUtilsTest.kt index ad134539f92b..f7de0d5a2bca 100644 --- a/libs/fluxc/src/test/java/org/wordpress/android/fluxc/comment/CommentSqlUtilsTest.kt +++ b/libs/fluxc/src/test/java/org/wordpress/android/fluxc/comment/CommentSqlUtilsTest.kt @@ -179,9 +179,9 @@ class CommentSqlUtilsTest { val commentsInDb = generateCommentModels(60, ALL) val remoteComments = generateCommentModels(30, ALL) - remoteComments.removeLast() - remoteComments.removeLast() - remoteComments.removeLast() + remoteComments.removeAt(remoteComments.lastIndex) + remoteComments.removeAt(remoteComments.lastIndex) + remoteComments.removeAt(remoteComments.lastIndex) commentsInDb.forEach { CommentSqlUtils.insertOrUpdateComment(it)