Skip to content

Commit eec2038

Browse files
authored
test(config): isolate credential store in developer path report test (#42)
1 parent be25f1b commit eec2038

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

internal/config/developer_path_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ func TestEvaluateDeveloperPath_FreshInstall(t *testing.T) {
3232

3333
func TestFormatDeveloperPathReport_ContainsSections(t *testing.T) {
3434
isolateMilestoneTest(t)
35+
credentials.SetDefaultStore(emptyCredentialStore{})
36+
t.Cleanup(func() { credentials.SetDefaultStore(nil) })
3537
out := FormatDeveloperPathReport(context.Background())
3638
for _, want := range []string{
3739
"Developer path",

0 commit comments

Comments
 (0)