Skip to content

Commit 2cb9bfd

Browse files
authored
refactor(coderd): move healthcheck report structs to codersdk (coder#12279)
Moves healthcheck report-related structs from coderd/healthcheck to codersdk This prevents an import cycle when adding a codersdk.Client method to hit /api/v2/debug/health.
1 parent aa7a9f5 commit 2cb9bfd

File tree

21 files changed

+5555
-5539
lines changed

21 files changed

+5555
-5539
lines changed

cli/netcheck_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/stretchr/testify/require"
1010

1111
"github.com/coder/coder/v2/cli/clitest"
12-
"github.com/coder/coder/v2/coderd/healthcheck/derphealth"
12+
"github.com/coder/coder/v2/codersdk"
1313
"github.com/coder/coder/v2/pty/ptytest"
1414
)
1515

@@ -27,7 +27,7 @@ func TestNetcheck(t *testing.T) {
2727

2828
b := out.Bytes()
2929
t.Log(string(b))
30-
var report derphealth.Report
30+
var report codersdk.DERPHealthReport
3131
require.NoError(t, json.Unmarshal(b, &report))
3232

3333
assert.True(t, report.Healthy)

0 commit comments

Comments
 (0)