From df3a04d19d8a43e4568c1dc89cd86ebe6c707424 Mon Sep 17 00:00:00 2001 From: Kieran Klukas Date: Thu, 21 May 2026 15:20:20 -0400 Subject: [PATCH] chore: isolate store test --- internal/config/store_test.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/internal/config/store_test.go b/internal/config/store_test.go index e977547c74388f632993b1101eb6aacdaf1e74d1..66f9a00a44ffd82bef18eb70afdae93cfa66fc69 100644 --- a/internal/config/store_test.go +++ b/internal/config/store_test.go @@ -318,11 +318,16 @@ func TestConfigStaleness_RefreshClearsDirtyState(t *testing.T) { // ReloadFromDisk updates store state BEFORE running model/agent setup, // so the new config values are used rather than stale pre-reload values. func TestReloadFromDisk_UsesNewConfigValues(t *testing.T) { - t.Parallel() - dir := t.TempDir() configPath := filepath.Join(dir, "crush.json") + // Isolate from the host's global config so only test-provided + // providers are visible. + t.Setenv("CRUSH_GLOBAL_CONFIG", dir) + t.Setenv("CRUSH_GLOBAL_DATA", dir) + resetProviderState() + t.Cleanup(resetProviderState) + // Create initial config with one model preference initialConfig := `{ "models": {