diff --git a/internal/agent/telemetry_test.go b/internal/agent/telemetry_test.go index b905283..d4cc2b4 100644 --- a/internal/agent/telemetry_test.go +++ b/internal/agent/telemetry_test.go @@ -58,13 +58,14 @@ func TestChooseHostIPs(t *testing.T) { } // TestCollectTelemetryShape pins the always-on fields on any Linux host: -// the agent's own build version and a positive host uptime. Source-specific -// fields (xray version, IPs) are environment-dependent and not asserted. +// the agent's own A-series display version (item 18) and a positive host +// uptime. Source-specific fields (xray version, IPs) are +// environment-dependent and not asserted. func TestCollectTelemetryShape(t *testing.T) { a := New(&Config{MasterURL: "http://127.0.0.1:1", Token: "t", NodeName: "n"}) tel := a.collectTelemetry() - if tel.AgentVersion != config.GetBaseVersion() || tel.AgentVersion == "" { - t.Errorf("AgentVersion = %q, want config.GetBaseVersion() %q", tel.AgentVersion, config.GetBaseVersion()) + if tel.AgentVersion != config.GetAgentDisplayVersion() || tel.AgentVersion == "" { + t.Errorf("AgentVersion = %q, want config.GetAgentDisplayVersion() %q", tel.AgentVersion, config.GetAgentDisplayVersion()) } if tel.UptimeSeconds == nil || *tel.UptimeSeconds == 0 { t.Errorf("UptimeSeconds = %v, want non-nil positive", tel.UptimeSeconds)