mirror of
https://github.com/alireza0/s-ui.git
synced 2026-11-21 15:40:12 +00:00
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
16 lines
502 B
Go
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)
|
|
}
|
|
}
|