Commit 29f68e0
committed
test(042): clear CI/DO_NOT_TRACK env in heartbeat tests
TestHeartbeatSend and TestMultipleHeartbeats instantiate the telemetry
service, which captures the env-var disable reason at New() time. GitHub
Actions sets CI=true, which caused Start() to early-return before sending
any heartbeats — failing both tests on CI but passing locally.
Use t.Setenv to clear CI, DO_NOT_TRACK, and MCPPROXY_TELEMETRY for the
duration of these tests so telemetry actually runs. Other tests in the
package don't call Start() so they're unaffected.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 0f74e52 commit 29f68e0
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
| |||
242 | 247 | | |
243 | 248 | | |
244 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
245 | 255 | | |
246 | 256 | | |
247 | 257 | | |
| |||
0 commit comments