Skip to content

Commit 01cd6d9

Browse files
committed
build: 2.5.0
1 parent 9483bb7 commit 01cd6d9

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ mirai {
5555
jvmTarget = JavaVersion.VERSION_11
5656
coreVersion = "2.15.0-dev-120"
5757
consoleVersion = "2.15.0-dev-120"
58-
useTestConsoleFrontEnd = null
58+
if (System.getenv("CI").toBoolean()) {
59+
useTestConsoleFrontEnd = null
60+
}
5961
}
6062

6163
tasks {

src/test/kotlin/xyz/cssxsh/mirai/test/MiraiSeleniumPluginTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package xyz.cssxsh.mirai.test
33
import kotlinx.coroutines.*
44
import net.mamoe.mirai.console.plugin.jvm.*
55
import net.mamoe.mirai.utils.*
6+
import org.openqa.selenium.OutputType
67
import org.openqa.selenium.remote.*
78
import xyz.cssxsh.mirai.selenium.*
89
import xyz.cssxsh.mirai.selenium.data.*
@@ -131,8 +132,7 @@ internal class MiraiSeleniumPluginTest :
131132
]
132133
}
133134
""".trimIndent()
134-
val content = driver.echarts(meta = EChartsMeta(option = option))
135-
val (type, bytes) = data(url = content)
135+
val content = driver.echartsAs(meta = EChartsMeta(option = option), outputType = OutputType.FILE)
136136
}
137137
}
138138
}

0 commit comments

Comments
 (0)