From 919db81fba64450aaf86735cfaced4c0dcff2f41 Mon Sep 17 00:00:00 2001 From: Pavel Punegov Date: Fri, 13 Dec 2019 19:30:27 +0300 Subject: [PATCH] Use forEach {} instead of all {}, because the latter cases closure to be executed in the configure() method. This method adds doFirst{} for the second time. --- backend.native/tests/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend.native/tests/build.gradle b/backend.native/tests/build.gradle index ce5d2566bbc..6868dac588e 100644 --- a/backend.native/tests/build.gradle +++ b/backend.native/tests/build.gradle @@ -4108,7 +4108,7 @@ dependencies { if (PlatformInfo.getTarget(project) == KonanTarget.IOS_ARM64.INSTANCE) { project.tasks .matching { it instanceof KonanTestExecutable } - .all { + .forEach { ExecutorServiceKt.configureXcodeBuild((KonanTestExecutable) it) } // Exclude tasks that can not be run on device @@ -4119,5 +4119,5 @@ if (PlatformInfo.getTarget(project) == KonanTarget.IOS_ARM64.INSTANCE) { it instanceof KonanDynamicTest || it instanceof KonanLinkTest } - .all { it.enabled = false } + .forEach { it.enabled = false } } \ No newline at end of file