Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit621fa13

Browse files
committed
refactor(coderd): move healthcheck report structs to codersdk
1 parentee7828a commit621fa13

File tree

22 files changed

+5560
-5548
lines changed

22 files changed

+5560
-5548
lines changed

‎cli/netcheck.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func (r *RootCmd) netcheck() *clibase.Cmd {
3838
DERPMap:connInfo.DERPMap,
3939
})
4040

41-
raw,err:=json.MarshalIndent(report,""," ")
41+
raw,err:=json.MarshalIndent(report.DERPHealthReport,""," ")
4242
iferr!=nil {
4343
returnerr
4444
}

‎cli/netcheck_test.go‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ import (
55
"encoding/json"
66
"testing"
77

8+
"github.com/coder/coder/v2/codersdk"
9+
810
"github.com/stretchr/testify/assert"
911
"github.com/stretchr/testify/require"
1012

1113
"github.com/coder/coder/v2/cli/clitest"
12-
"github.com/coder/coder/v2/coderd/healthcheck/derphealth"
1314
"github.com/coder/coder/v2/pty/ptytest"
1415
)
1516

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

2829
b:=out.Bytes()
2930
t.Log(string(b))
30-
varreportderphealth.Report
31+
varreportcodersdk.DERPHealthReport
3132
require.NoError(t,json.Unmarshal(b,&report))
3233

3334
assert.True(t,report.Healthy)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp