s-ui/service/server_version_test.go
Alireza Ahmadi ad1e4e99f5
Some checks are pending
Release S-UI / test (push) Waiting to run
Release S-UI / build-frontend (push) Blocked by required conditions
Release S-UI / build-386 (push) Blocked by required conditions
Release S-UI / build-amd64 (push) Blocked by required conditions
Release S-UI / build-armv5 (push) Blocked by required conditions
Release S-UI / build-armv6 (push) Blocked by required conditions
Release S-UI / build-armv7 (push) Blocked by required conditions
Release S-UI / build-arm64 (push) Blocked by required conditions
Release S-UI / build-s390x (push) Blocked by required conditions
Release S-UI / build-windows-amd64 (push) Blocked by required conditions
Release S-UI / build-windows-arm64 (push) Blocked by required conditions
Release S-UI / publish (push) Blocked by required conditions
feat: report the linked sing-box version in system info #1338
2026-11-06 23:49:07 +01:00

16 lines
502 B
Go

package service
import (
"strings"
"testing"
)
// The dashboard shows the linked sing-box version next to the panel's. #1338
func TestSingboxVersionFromBuildInfo(t *testing.T) {
if singboxVersion == "" || strings.HasPrefix(singboxVersion, "v") {
t.Fatalf("singboxVersion = %q, want the module version without the v prefix", singboxVersion)
}
if got := (&ServerService{}).GetSystemInfo()["coreVersion"]; got != singboxVersion {
t.Fatalf("coreVersion = %v, want %s", got, singboxVersion)
}
}