Skip to content

Commit

Permalink
fix: 加入文件校验
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon406 committed Jan 31, 2024
1 parent 01e513e commit d04f3b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/test/java/me/leon/SpeedTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ import java.nio.charset.Charset
class SpeedTest {
@Test
fun exec() {
val config = "litespeed/config.json".toFile()
val config = "litespeed/config.json".toFile().absoluteFile
if (!NODE_OK.toFile().exists()) {
println("---------------------- error")
return
}
config.writeBytes(LiteSpeedConfig(NODE_OK).toJson().toByteArray())
val nodes = mutableMapOf<Int, String>()
val oks = mutableListOf<Int>()
Expand Down

0 comments on commit d04f3b8

Please sign in to comment.