Skip to content

Commit a7b9f26

Browse files
author
ddx-checkpoint
committed
test: disable update checks in command fixtures
1 parent 725f69f commit a7b9f26

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ All notable changes to DDx are documented in this file.
99
Release checksums now tolerate archive sets without Windows zip artifacts, and
1010
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
12-
patched version so the high-severity Bun audit finding is cleared.
12+
patched version so the high-severity Bun audit finding is cleared. Command test
13+
fixtures now suppress background update checks so CI temp-directory cleanup is
14+
not racing asynchronous network/cache work.
1315

1416
### Fixed: autonomous provider-connectivity recovery
1517

cli/cmd/testutils_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,10 @@ func WithCustomLibraryURL(url string) TestEnvOption {
212212
func NewTestEnvironment(t *testing.T, opts ...TestEnvOption) *TestEnvironment {
213213
t.Helper()
214214

215+
// Command fixtures should be hermetic. The update checker runs in a
216+
// background goroutine and can outlive a test's temp HOME/config dirs.
217+
t.Setenv("DDX_DISABLE_UPDATE_CHECK", "1")
218+
215219
tempDir := t.TempDir()
216220
ddxDir := filepath.Join(tempDir, ddxroot.DirName)
217221
configPath := filepath.Join(ddxDir, "config.yaml")

0 commit comments

Comments
 (0)