From 58a39d9dc3405c7abb3151a0d604ba291ce08e9e Mon Sep 17 00:00:00 2001 From: Selina Lin Date: Fri, 26 Jan 2024 19:18:41 +0100 Subject: [PATCH] clean up DeepSearchTest --- .../asynchronous/asynctasks/searchfilesystem/DeepSearchTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/DeepSearchTest.kt b/app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/DeepSearchTest.kt index e13c7dc553..cf26588e63 100644 --- a/app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/DeepSearchTest.kt +++ b/app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/DeepSearchTest.kt @@ -64,7 +64,7 @@ class DeepSearchTest { mockkObject(ListFilesCommand) every { ListFilesCommand.listFiles(any(), any(), any(), any(), any()) } answers { - val onFileFoundCallback = it.invocation.args.last() as (HybridFileParcelable) -> Unit + val onFileFoundCallback = lastArg<(HybridFileParcelable) -> Unit>() onFileFoundCallback(foundFileMock) }