File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1048,9 +1048,10 @@ func TestAgent_FileTransferBlocked(t *testing.T) {
1048
1048
require .NoError (t , err )
1049
1049
errorMessage := string (msg )
1050
1050
1051
- // NOTE: Checking content of the error message is flaky. Sometimes it catches " EOF" or "Process terminate with status code 2".
1051
+ // NOTE: Checking content of the error message is flaky. It can catch: "File transfer has been disabled", " EOF", or "Process exited with status 2".
1052
1052
isErr := strings .Contains (errorMessage , agentssh .BlockedFileTransferErrorMessage ) ||
1053
- strings .Contains (errorMessage , "EOF" )
1053
+ strings .Contains (errorMessage , "EOF" ) ||
1054
+ strings .Contains (errorMessage , "Process exited with status 2" )
1054
1055
require .True (t , isErr , fmt .Sprintf ("Message: " + errorMessage ))
1055
1056
})
1056
1057
}
You can’t perform that action at this time.
0 commit comments