[Wasm] Change expected outcome to SUCCESS in wasm-wasi-test

Added workaround for missing dependency.

#KT-59720
This commit is contained in:
Zalim Bashorov
2023-09-15 15:02:05 +02:00
committed by Space Team
parent c915cc54c7
commit 8a6fdf2493
3 changed files with 11 additions and 8 deletions
@@ -39,9 +39,13 @@ class KotlinWasmGradlePluginIT : KGPBaseTest() {
project("new-mpp-wasm-wasi-test", gradleVersion) {
buildGradleKts.modify(::transformBuildScriptWithPluginsDsl)
buildAndFail(":wasmWasiTest") {
build(
// TODO remove as soon as KT-61971 fixed
":kotlinNodeJsSetup",
":wasmWasiTest"
) {
assertTasksExecuted(":compileKotlinWasmWasi")
assertTasksFailed(":wasmWasiNodeTest")
assertTasksExecuted(":wasmWasiNodeTest")
}
}
}
@@ -3,7 +3,9 @@ plugins {
}
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)) {
@@ -6,14 +6,11 @@ import kotlin.test.assertEquals
class WasmTest {
@Test
fun test1() = assertEquals(foo(), 1)
fun test1() = assertEquals(foo(), 2)
@Test
@Ignore
fun test2() = assertEquals(foo(), 2)
@Test
fun test3() = assertEquals(foo(), 3)
fun test2() = assertEquals(foo(), 1)
@Ignore
class InnerIgnored {