on main help sign in
chore: isolate store test
commitdf3a04d19d8a43e4568c1dc89cd86ebe6c707424 authorKieran Klukas <kieran@dunkirk.sh> dateThu 21 May 2026, 15:20 (5 months ago) parent841eec8
1 file changed+7−2
internal/config/store_test.go+7−2
internal/config/store_test.go+7−2
@@ -318,11 +318,16 @@ func TestConfigStaleness_RefreshClearsDirtyState(t *testing.T) {
318318// ReloadFromDisk updates store state BEFORE running model/agent setup,
319319// so the new config values are used rather than stale pre-reload values.
320320func TestReloadFromDisk_UsesNewConfigValues(t *testing.T) {
321− t.Parallel()
322−
323321 dir := t.TempDir()
324322 configPath := filepath.Join(dir, "crush.json")
325323
324+ // Isolate from the host's global config so only test-provided
325+ // providers are visible.
326+ t.Setenv("CRUSH_GLOBAL_CONFIG", dir)
327+ t.Setenv("CRUSH_GLOBAL_DATA", dir)
328+ resetProviderState()
329+ t.Cleanup(resetProviderState)
330+
326331 // Create initial config with one model preference
327332 initialConfig := `{
328333 "models": {