We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1131772 commit 2fa3710Copy full SHA for 2fa3710
cli/netcheck_test.go
@@ -5,7 +5,6 @@ import (
5
"encoding/json"
6
"testing"
7
8
- "github.com/stretchr/testify/assert"
9
"github.com/stretchr/testify/require"
10
11
"github.com/coder/coder/v2/cli/clitest"
@@ -30,7 +29,8 @@ func TestNetcheck(t *testing.T) {
30
29
var report healthsdk.DERPHealthReport
31
require.NoError(t, json.Unmarshal(b, &report))
32
33
- assert.True(t, report.Healthy)
+ // We do not assert that the report is healthy, just that
+ // it has the expected number of reports per region.
34
require.Len(t, report.Regions, 1+1) // 1 built-in region + 1 test-managed STUN region
35
for _, v := range report.Regions {
36
require.Len(t, v.NodeReports, len(v.Region.Nodes))
0 commit comments