File tree Expand file tree Collapse file tree
gatherer/src/main/kotlin/org/sinytra/probe/gatherer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ object TransformRunner {
4343 }
4444 }
4545
46- val parsedPlatform = ProjectPlatform .valueOf(platform)
46+ val parsedPlatform = ProjectPlatform .valueOf(platform.uppercase() )
4747 val resp = client.post(" /api/v1/probe" ) {
4848 contentType(ContentType .Application .Json )
4949 setBody(TestRequestBody (parsedPlatform, slug, gameVersion))
Original file line number Diff line number Diff line change 11package org.sinytra.probe.gatherer
22
33import kotlinx.serialization.ExperimentalSerializationApi
4- import kotlinx.serialization.json.Json
54import kotlinx.serialization.json.decodeFromStream
65import org.sinytra.probe.base.TestReport
6+ import org.sinytra.probe.gatherer.internal.ResultReporter
77import org.slf4j.Logger
88import org.slf4j.LoggerFactory
99import picocli.CommandLine.*
@@ -32,7 +32,7 @@ class RunRegressionTestsCommand : Callable<Int> {
3232 if (! results!! .exists())
3333 throw IllegalArgumentException (" Missing old results file" )
3434
35- val oldResults: TestReport = results!! .inputStream().use(Json ::decodeFromStream)
35+ val oldResults: TestReport = results!! .inputStream().use(ResultReporter . JSON ::decodeFromStream)
3636 if (oldResults.results.isEmpty()) {
3737 LOGGER .error(" Results file is empty, skipping tests" )
3838 return 0
You can’t perform that action at this time.
0 commit comments