@@ -159,7 +159,9 @@ func TestAgent_Stats_Magic(t *testing.T) {
159
159
ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitLong )
160
160
defer cancel ()
161
161
//nolint:dogsled
162
- conn , agentClient , stats , _ , _ := setupAgent (t , agentsdk.Manifest {}, 0 )
162
+ conn , agentClient , stats , _ , _ := setupAgent (t , agentsdk.Manifest {}, 0 , func (_ * agenttest.Client , o * agent.Options ) {
163
+ o .ExperimentalConnectionReports = true
164
+ })
163
165
sshClient , err := conn .SSHClient (ctx )
164
166
require .NoError (t , err )
165
167
defer sshClient .Close ()
@@ -227,7 +229,9 @@ func TestAgent_Stats_Magic(t *testing.T) {
227
229
remotePort := sc .Text ()
228
230
229
231
//nolint:dogsled
230
- conn , agentClient , stats , _ , _ := setupAgent (t , agentsdk.Manifest {}, 0 )
232
+ conn , agentClient , stats , _ , _ := setupAgent (t , agentsdk.Manifest {}, 0 , func (_ * agenttest.Client , o * agent.Options ) {
233
+ o .ExperimentalConnectionReports = true
234
+ })
231
235
sshClient , err := conn .SSHClient (ctx )
232
236
require .NoError (t , err )
233
237
@@ -922,7 +926,9 @@ func TestAgent_SFTP(t *testing.T) {
922
926
home = "/" + strings .ReplaceAll (home , "\\ " , "/" )
923
927
}
924
928
//nolint:dogsled
925
- conn , agentClient , _ , _ , _ := setupAgent (t , agentsdk.Manifest {}, 0 )
929
+ conn , agentClient , _ , _ , _ := setupAgent (t , agentsdk.Manifest {}, 0 , func (_ * agenttest.Client , o * agent.Options ) {
930
+ o .ExperimentalConnectionReports = true
931
+ })
926
932
sshClient , err := conn .SSHClient (ctx )
927
933
require .NoError (t , err )
928
934
defer sshClient .Close ()
@@ -958,7 +964,9 @@ func TestAgent_SCP(t *testing.T) {
958
964
defer cancel ()
959
965
960
966
//nolint:dogsled
961
- conn , agentClient , _ , _ , _ := setupAgent (t , agentsdk.Manifest {}, 0 )
967
+ conn , agentClient , _ , _ , _ := setupAgent (t , agentsdk.Manifest {}, 0 , func (_ * agenttest.Client , o * agent.Options ) {
968
+ o .ExperimentalConnectionReports = true
969
+ })
962
970
sshClient , err := conn .SSHClient (ctx )
963
971
require .NoError (t , err )
964
972
defer sshClient .Close ()
@@ -1001,6 +1009,7 @@ func TestAgent_FileTransferBlocked(t *testing.T) {
1001
1009
//nolint:dogsled
1002
1010
conn , agentClient , _ , _ , _ := setupAgent (t , agentsdk.Manifest {}, 0 , func (_ * agenttest.Client , o * agent.Options ) {
1003
1011
o .BlockFileTransfer = true
1012
+ o .ExperimentalConnectionReports = true
1004
1013
})
1005
1014
sshClient , err := conn .SSHClient (ctx )
1006
1015
require .NoError (t , err )
@@ -1021,6 +1030,7 @@ func TestAgent_FileTransferBlocked(t *testing.T) {
1021
1030
//nolint:dogsled
1022
1031
conn , agentClient , _ , _ , _ := setupAgent (t , agentsdk.Manifest {}, 0 , func (_ * agenttest.Client , o * agent.Options ) {
1023
1032
o .BlockFileTransfer = true
1033
+ o .ExperimentalConnectionReports = true
1024
1034
})
1025
1035
sshClient , err := conn .SSHClient (ctx )
1026
1036
require .NoError (t , err )
@@ -1049,6 +1059,7 @@ func TestAgent_FileTransferBlocked(t *testing.T) {
1049
1059
//nolint:dogsled
1050
1060
conn , agentClient , _ , _ , _ := setupAgent (t , agentsdk.Manifest {}, 0 , func (_ * agenttest.Client , o * agent.Options ) {
1051
1061
o .BlockFileTransfer = true
1062
+ o .ExperimentalConnectionReports = true
1052
1063
})
1053
1064
sshClient , err := conn .SSHClient (ctx )
1054
1065
require .NoError (t , err )
@@ -1679,7 +1690,9 @@ func TestAgent_ReconnectingPTY(t *testing.T) {
1679
1690
defer cancel ()
1680
1691
1681
1692
//nolint:dogsled
1682
- conn , agentClient , _ , _ , _ := setupAgent (t , agentsdk.Manifest {}, 0 )
1693
+ conn , agentClient , _ , _ , _ := setupAgent (t , agentsdk.Manifest {}, 0 , func (_ * agenttest.Client , o * agent.Options ) {
1694
+ o .ExperimentalConnectionReports = true
1695
+ })
1683
1696
id := uuid .New ()
1684
1697
1685
1698
// Test that the connection is reported. This must be tested in the
0 commit comments