feat(platform): expose deployed release

This commit is contained in:
lingniu
2026-07-04 15:34:37 +08:00
parent 1f069178d6
commit ff36cb4bd1
9 changed files with 32 additions and 1 deletions

View File

@@ -14,3 +14,13 @@ func TestLoadReadsRequestTimeout(t *testing.T) {
t.Fatalf("RequestTimeout = %s, want 1.2s", cfg.RequestTimeout)
}
}
func TestLoadReadsPlatformRelease(t *testing.T) {
t.Setenv("PLATFORM_RELEASE", "platform-20260704153005")
cfg := Load()
if cfg.PlatformRelease != "platform-20260704153005" {
t.Fatalf("PlatformRelease = %q", cfg.PlatformRelease)
}
}