You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The source code that I am creating unit tests has a lot of try catch block. How do I simulate failure scenario, so I can cover those catch blocks ? Is there I way we can customize the response or reply code of the different SFTP commands ?
The text was updated successfully, but these errors were encountered:
For simulating network failures I suggest to use a proxy that can simulate network errors. For network errors you usually don't get an answer from the SFTP server at all and therefore this behaviour is not something I would like tom implement in the SFTP server. Does this answer help you?
The source code that I am creating unit tests has a lot of try catch block. How do I simulate failure scenario, so I can cover those catch blocks ? Is there I way we can customize the response or reply code of the different SFTP commands ?
The text was updated successfully, but these errors were encountered: