aboutsummaryrefslogtreecommitdiffhomepage
path: root/worker
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-08 03:57:16 +0900
committernsfisis <nsfisis@gmail.com>2024-08-08 04:02:37 +0900
commita062af23b2e72c38b667e969652aefcf2238dc1b (patch)
treecbcaa732e083d9465e11396ffc555ba08e0f87ef /worker
parent4eb7e89d6a77a4434bd087fbb86873521d30a8f5 (diff)
downloadphperkaigi-2025-albatross-a062af23b2e72c38b667e969652aefcf2238dc1b.tar.gz
phperkaigi-2025-albatross-a062af23b2e72c38b667e969652aefcf2238dc1b.tar.zst
phperkaigi-2025-albatross-a062af23b2e72c38b667e969652aefcf2238dc1b.zip
feat(backend): aggregate testcase results
Diffstat (limited to 'worker')
-rw-r--r--worker/exec.go2
-rw-r--r--worker/models.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/worker/exec.go b/worker/exec.go
index 10bc99a..fb238c3 100644
--- a/worker/exec.go
+++ b/worker/exec.go
@@ -77,7 +77,7 @@ func convertCommandErrorToResultType(err error) string {
if err == context.DeadlineExceeded {
return resultTimeout
} else {
- return resultFailure
+ return resultRuntimeError
}
} else {
return resultSuccess
diff --git a/worker/models.go b/worker/models.go
index a7310bd..c60002c 100644
--- a/worker/models.go
+++ b/worker/models.go
@@ -7,7 +7,7 @@ import (
const (
resultSuccess = "success"
- resultFailure = "failure"
+ resultRuntimeError = "runtime_error"
resultTimeout = "timeout"
resultInternalError = "internal_error"
)