From d04f3b8992451ae2c02a8a1bc795ae69992f7838 Mon Sep 17 00:00:00 2001 From: Leon Lambert Date: Wed, 31 Jan 2024 09:23:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8A=A0=E5=85=A5=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/java/me/leon/SpeedTest.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/test/java/me/leon/SpeedTest.kt b/src/test/java/me/leon/SpeedTest.kt index 3c8d4e9f6e3..30beb035c66 100644 --- a/src/test/java/me/leon/SpeedTest.kt +++ b/src/test/java/me/leon/SpeedTest.kt @@ -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() val oks = mutableListOf()