Skip to content

Commit 2fa3710

Browse files
committed
chore(cli): netcheck: remove check for healthy node report in test
1 parent 1131772 commit 2fa3710

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/netcheck_test.go

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

8-
"github.com/stretchr/testify/assert"
98
"github.com/stretchr/testify/require"
109

1110
"github.com/coder/coder/v2/cli/clitest"
@@ -30,7 +29,8 @@ func TestNetcheck(t *testing.T) {
3029
var report healthsdk.DERPHealthReport
3130
require.NoError(t, json.Unmarshal(b, &report))
3231

33-
assert.True(t, report.Healthy)
32+
// We do not assert that the report is healthy, just that
33+
// it has the expected number of reports per region.
3434
require.Len(t, report.Regions, 1+1) // 1 built-in region + 1 test-managed STUN region
3535
for _, v := range report.Regions {
3636
require.Len(t, v.NodeReports, len(v.Region.Nodes))

0 commit comments

Comments
 (0)