@@ -683,19 +683,6 @@ func TestConnDiagnostics(t *testing.T) {
683683diags cliui.ConnDiags
684684want []string
685685}{
686- {
687- name :"Direct" ,
688- diags : cliui.ConnDiags {
689- ConnInfo : workspacesdk.AgentConnectionInfo {
690- DERPMap :& tailcfg.DERPMap {},
691- },
692- PingP2P :true ,
693- LocalNetInfo :& tailcfg.NetInfo {},
694- },
695- want : []string {
696- `✔ You are connected directly (p2p)` ,
697- },
698- },
699686{
700687name :"DirectBlocked" ,
701688diags : cliui.ConnDiags {
@@ -705,7 +692,6 @@ func TestConnDiagnostics(t *testing.T) {
705692},
706693},
707694want : []string {
708- `❗ You are connected via a DERP relay, not directly (p2p)` ,
709695`❗ Your Coder administrator has blocked direct connections` ,
710696},
711697},
@@ -718,7 +704,6 @@ func TestConnDiagnostics(t *testing.T) {
718704LocalNetInfo :& tailcfg.NetInfo {},
719705},
720706want : []string {
721- `❗ You are connected via a DERP relay, not directly (p2p)` ,
722707`The DERP map is not configured to use STUN` ,
723708},
724709},
@@ -743,7 +728,6 @@ func TestConnDiagnostics(t *testing.T) {
743728},
744729},
745730want : []string {
746- `❗ You are connected via a DERP relay, not directly (p2p)` ,
747731`Client could not connect to STUN over UDP` ,
748732},
749733},
@@ -770,7 +754,6 @@ func TestConnDiagnostics(t *testing.T) {
770754},
771755},
772756want : []string {
773- `❗ You are connected via a DERP relay, not directly (p2p)` ,
774757`Agent could not connect to STUN over UDP` ,
775758},
776759},
@@ -785,7 +768,6 @@ func TestConnDiagnostics(t *testing.T) {
785768},
786769},
787770want : []string {
788- `❗ You are connected via a DERP relay, not directly (p2p)` ,
789771`Client is potentially behind a hard NAT, as multiple endpoints were retrieved from different STUN servers` ,
790772},
791773},
@@ -795,14 +777,12 @@ func TestConnDiagnostics(t *testing.T) {
795777ConnInfo : workspacesdk.AgentConnectionInfo {
796778DERPMap :& tailcfg.DERPMap {},
797779},
798- PingP2P :false ,
799780LocalNetInfo :& tailcfg.NetInfo {},
800781AgentNetcheck :& healthsdk.AgentNetcheckReport {
801782NetInfo :& tailcfg.NetInfo {MappingVariesByDestIP :"true" },
802783},
803784},
804785want : []string {
805- `❗ You are connected via a DERP relay, not directly (p2p)` ,
806786`Agent is potentially behind a hard NAT, as multiple endpoints were retrieved from different STUN servers` ,
807787},
808788},
@@ -812,7 +792,6 @@ func TestConnDiagnostics(t *testing.T) {
812792ConnInfo : workspacesdk.AgentConnectionInfo {
813793DERPMap :& tailcfg.DERPMap {},
814794},
815- PingP2P :true ,
816795AgentNetcheck :& healthsdk.AgentNetcheckReport {
817796Interfaces : healthsdk.InterfacesReport {
818797BaseReport : healthsdk.BaseReport {
@@ -824,7 +803,6 @@ func TestConnDiagnostics(t *testing.T) {
824803},
825804},
826805want : []string {
827- `✔ You are connected directly (p2p)` ,
828806`Network interface eth0 has MTU 1280, (less than 1378), which may degrade the quality of direct connections` ,
829807},
830808},
@@ -834,7 +812,6 @@ func TestConnDiagnostics(t *testing.T) {
834812ConnInfo : workspacesdk.AgentConnectionInfo {
835813DERPMap :& tailcfg.DERPMap {},
836814},
837- PingP2P :true ,
838815LocalInterfaces :& healthsdk.InterfacesReport {
839816BaseReport : healthsdk.BaseReport {
840817Warnings : []health.Message {
@@ -844,7 +821,6 @@ func TestConnDiagnostics(t *testing.T) {
844821},
845822},
846823want : []string {
847- `✔ You are connected directly (p2p)` ,
848824`Network interface eth1 has MTU 1310, (less than 1378), which may degrade the quality of direct connections` ,
849825},
850826},
@@ -858,7 +834,6 @@ func TestConnDiagnostics(t *testing.T) {
858834AgentIPIsAWS :false ,
859835},
860836want : []string {
861- `❗ You are connected via a DERP relay, not directly (p2p)` ,
862837`Client IP address is within an AWS range (AWS uses hard NAT)` ,
863838},
864839},
@@ -872,7 +847,6 @@ func TestConnDiagnostics(t *testing.T) {
872847AgentIPIsAWS :true ,
873848},
874849want : []string {
875- `❗ You are connected via a DERP relay, not directly (p2p)` ,
876850`Agent IP address is within an AWS range (AWS uses hard NAT)` ,
877851},
878852},