[gradle-plugin][tests] Fix tests

This commit is contained in:
Ilya Matveev
2018-07-24 12:40:35 +07:00
committed by ilmat192
parent a68c864e7a
commit 4e8f016a7b
2 changed files with 5 additions and 2 deletions
@@ -19,6 +19,7 @@ package org.jetbrains.kotlin.gradle.plugin.test
import org.junit.Rule
import org.junit.rules.TemporaryFolder
import java.io.File
import java.net.URI
import kotlin.test.*
open class CompatibilityTests {
@@ -33,7 +34,9 @@ open class CompatibilityTests {
val project = KonanProject.createEmpty(projectDirectory)
val result = project
.createRunner()
.withGradleVersion("4.5")
.withGradleDistribution(URI.create(
"https://cache-redirector.jetbrains.com/services.gradle.org/distributions/gradle-4.5-bin.zip"
))
.withArguments("tasks")
.buildAndFail()
println(result.output)
@@ -468,7 +468,7 @@ class ExperimentalPluginTests {
}
@Test
fun `Framework name should not contain "-" symbols`() = withProject("test-framework-project") {
fun `Framework name should not contain minus symbols`() = withProject("test-framework-project") {
assumeTrue(HostManager.hostIsMac)
components.withType(KotlinNativeMainComponent::class.java)
.getByName("main")