Skip to content

Commit dec613a

Browse files
Fix flaky test race condition in TestFindClientConfigs (#1434)
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com> Co-authored-by: Chris Burns <[email protected]>
1 parent bd7af2a commit dec613a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/client/discovery_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"github.com/stacklok/toolhive/pkg/logger"
1515
)
1616

17-
func TestGetClientStatus(t *testing.T) {
17+
func TestGetClientStatus(t *testing.T) { //nolint:paralleltest // Uses global XDG state via MockConfig
1818
// Setup a temporary home directory for testing
1919
tempHome, err := os.MkdirTemp("", "toolhive-test-home")
2020
require.NoError(t, err)
@@ -65,7 +65,7 @@ func TestGetClientStatus(t *testing.T) {
6565
assert.False(t, vscodeStatus.Registered)
6666
}
6767

68-
func TestGetClientStatus_Sorting(t *testing.T) {
68+
func TestGetClientStatus_Sorting(t *testing.T) { //nolint:paralleltest // Uses global XDG state via MockConfig
6969
// Setup a temporary home directory for testing
7070
origHome := os.Getenv("HOME")
7171
tempHome, err := os.MkdirTemp("", "toolhive-test-home")

0 commit comments

Comments
 (0)