@@ -683,19 +683,6 @@ func TestConnDiagnostics(t *testing.T) {
683
683
diags cliui.ConnDiags
684
684
want []string
685
685
}{
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
- },
699
686
{
700
687
name : "DirectBlocked" ,
701
688
diags : cliui.ConnDiags {
@@ -705,7 +692,6 @@ func TestConnDiagnostics(t *testing.T) {
705
692
},
706
693
},
707
694
want : []string {
708
- `❗ You are connected via a DERP relay, not directly (p2p)` ,
709
695
`❗ Your Coder administrator has blocked direct connections` ,
710
696
},
711
697
},
@@ -718,7 +704,6 @@ func TestConnDiagnostics(t *testing.T) {
718
704
LocalNetInfo : & tailcfg.NetInfo {},
719
705
},
720
706
want : []string {
721
- `❗ You are connected via a DERP relay, not directly (p2p)` ,
722
707
`The DERP map is not configured to use STUN` ,
723
708
},
724
709
},
@@ -743,7 +728,6 @@ func TestConnDiagnostics(t *testing.T) {
743
728
},
744
729
},
745
730
want : []string {
746
- `❗ You are connected via a DERP relay, not directly (p2p)` ,
747
731
`Client could not connect to STUN over UDP` ,
748
732
},
749
733
},
@@ -770,7 +754,6 @@ func TestConnDiagnostics(t *testing.T) {
770
754
},
771
755
},
772
756
want : []string {
773
- `❗ You are connected via a DERP relay, not directly (p2p)` ,
774
757
`Agent could not connect to STUN over UDP` ,
775
758
},
776
759
},
@@ -785,7 +768,6 @@ func TestConnDiagnostics(t *testing.T) {
785
768
},
786
769
},
787
770
want : []string {
788
- `❗ You are connected via a DERP relay, not directly (p2p)` ,
789
771
`Client is potentially behind a hard NAT, as multiple endpoints were retrieved from different STUN servers` ,
790
772
},
791
773
},
@@ -795,14 +777,12 @@ func TestConnDiagnostics(t *testing.T) {
795
777
ConnInfo : workspacesdk.AgentConnectionInfo {
796
778
DERPMap : & tailcfg.DERPMap {},
797
779
},
798
- PingP2P : false ,
799
780
LocalNetInfo : & tailcfg.NetInfo {},
800
781
AgentNetcheck : & healthsdk.AgentNetcheckReport {
801
782
NetInfo : & tailcfg.NetInfo {MappingVariesByDestIP : "true" },
802
783
},
803
784
},
804
785
want : []string {
805
- `❗ You are connected via a DERP relay, not directly (p2p)` ,
806
786
`Agent is potentially behind a hard NAT, as multiple endpoints were retrieved from different STUN servers` ,
807
787
},
808
788
},
@@ -812,7 +792,6 @@ func TestConnDiagnostics(t *testing.T) {
812
792
ConnInfo : workspacesdk.AgentConnectionInfo {
813
793
DERPMap : & tailcfg.DERPMap {},
814
794
},
815
- PingP2P : true ,
816
795
AgentNetcheck : & healthsdk.AgentNetcheckReport {
817
796
Interfaces : healthsdk.InterfacesReport {
818
797
BaseReport : healthsdk.BaseReport {
@@ -824,7 +803,6 @@ func TestConnDiagnostics(t *testing.T) {
824
803
},
825
804
},
826
805
want : []string {
827
- `✔ You are connected directly (p2p)` ,
828
806
`Network interface eth0 has MTU 1280, (less than 1378), which may degrade the quality of direct connections` ,
829
807
},
830
808
},
@@ -834,7 +812,6 @@ func TestConnDiagnostics(t *testing.T) {
834
812
ConnInfo : workspacesdk.AgentConnectionInfo {
835
813
DERPMap : & tailcfg.DERPMap {},
836
814
},
837
- PingP2P : true ,
838
815
LocalInterfaces : & healthsdk.InterfacesReport {
839
816
BaseReport : healthsdk.BaseReport {
840
817
Warnings : []health.Message {
@@ -844,7 +821,6 @@ func TestConnDiagnostics(t *testing.T) {
844
821
},
845
822
},
846
823
want : []string {
847
- `✔ You are connected directly (p2p)` ,
848
824
`Network interface eth1 has MTU 1310, (less than 1378), which may degrade the quality of direct connections` ,
849
825
},
850
826
},
@@ -858,7 +834,6 @@ func TestConnDiagnostics(t *testing.T) {
858
834
AgentIPIsAWS : false ,
859
835
},
860
836
want : []string {
861
- `❗ You are connected via a DERP relay, not directly (p2p)` ,
862
837
`Client IP address is within an AWS range (AWS uses hard NAT)` ,
863
838
},
864
839
},
@@ -872,7 +847,6 @@ func TestConnDiagnostics(t *testing.T) {
872
847
AgentIPIsAWS : true ,
873
848
},
874
849
want : []string {
875
- `❗ You are connected via a DERP relay, not directly (p2p)` ,
876
850
`Agent IP address is within an AWS range (AWS uses hard NAT)` ,
877
851
},
878
852
},
0 commit comments