[Wasm] Change expected outcome to SUCCESS in wasm-wasi-test
Added workaround for missing dependency. #KT-59720
This commit is contained in:
committed by
Space Team
parent
c915cc54c7
commit
8a6fdf2493
+6
-2
@@ -39,9 +39,13 @@ class KotlinWasmGradlePluginIT : KGPBaseTest() {
|
|||||||
project("new-mpp-wasm-wasi-test", gradleVersion) {
|
project("new-mpp-wasm-wasi-test", gradleVersion) {
|
||||||
buildGradleKts.modify(::transformBuildScriptWithPluginsDsl)
|
buildGradleKts.modify(::transformBuildScriptWithPluginsDsl)
|
||||||
|
|
||||||
buildAndFail(":wasmWasiTest") {
|
build(
|
||||||
|
// TODO remove as soon as KT-61971 fixed
|
||||||
|
":kotlinNodeJsSetup",
|
||||||
|
":wasmWasiTest"
|
||||||
|
) {
|
||||||
assertTasksExecuted(":compileKotlinWasmWasi")
|
assertTasksExecuted(":compileKotlinWasmWasi")
|
||||||
assertTasksFailed(":wasmWasiNodeTest")
|
assertTasksExecuted(":wasmWasiNodeTest")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-1
@@ -3,7 +3,9 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
with(org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin.apply(rootProject)) {
|
with(org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin.apply(rootProject)) {
|
||||||
nodeVersion = "20.2.0"
|
// canary nodejs that supports recent Wasm GC changes
|
||||||
|
nodeVersion = "21.0.0-v8-canary202309167e82ab1fa2"
|
||||||
|
nodeDownloadBaseUrl = "https://nodejs.org/download/v8-canary"
|
||||||
}
|
}
|
||||||
|
|
||||||
with(org.jetbrains.kotlin.gradle.targets.js.d8.D8RootPlugin.apply(rootProject)) {
|
with(org.jetbrains.kotlin.gradle.targets.js.d8.D8RootPlugin.apply(rootProject)) {
|
||||||
|
|||||||
+2
-5
@@ -6,14 +6,11 @@ import kotlin.test.assertEquals
|
|||||||
|
|
||||||
class WasmTest {
|
class WasmTest {
|
||||||
@Test
|
@Test
|
||||||
fun test1() = assertEquals(foo(), 1)
|
fun test1() = assertEquals(foo(), 2)
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Ignore
|
@Ignore
|
||||||
fun test2() = assertEquals(foo(), 2)
|
fun test2() = assertEquals(foo(), 1)
|
||||||
|
|
||||||
@Test
|
|
||||||
fun test3() = assertEquals(foo(), 3)
|
|
||||||
|
|
||||||
@Ignore
|
@Ignore
|
||||||
class InnerIgnored {
|
class InnerIgnored {
|
||||||
|
|||||||
Reference in New Issue
Block a user