Skip to content

Commit cfcbd31

Browse files
author
ddx-checkpoint
committed
test: isolate workerprobe heartbeat state
1 parent 7458d46 commit cfcbd31

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ the optional security scans no longer make the workflow invalid when their
1111
secrets are unset. The frontend dependency graph also overrides `devalue` to a
1212
patched version so the high-severity Bun audit finding is cleared. Command test
1313
fixtures now suppress background update checks so CI temp-directory cleanup is
14-
not racing asynchronous network/cache work. The workerprobe integration test
15-
also isolates server state before constructing its test server, preventing CI's
14+
not racing asynchronous network/cache work. Workerprobe integration tests also
15+
isolate server state before constructing test servers, preventing CI's
1616
state-pollution guard from seeing worker fixture projects.
1717

1818
### Fixed: autonomous provider-connectivity recovery

cli/internal/agent/workerprobe/liveness_heartbeat_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ func TestWorkerProbe_PeriodicHeartbeatRefreshesServerLastEventAt(t *testing.T) {
3030

3131
projectRoot := t.TempDir()
3232

33+
// Isolate server state before constructing the server. New() registers
34+
// the project immediately.
35+
t.Setenv("XDG_DATA_HOME", t.TempDir())
36+
3337
srv := serverpkg.New(":0", projectRoot)
3438
ts := httptest.NewServer(srv.Handler())
3539
defer ts.Close()

0 commit comments

Comments
 (0)