Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
4.33/5 (3 votes)
See more:
Hello Friends

I have return some code that calls external API. What happens some time my http request gets time out.(not always). I modified my code and handled the TimeOutException in my code. Now I want to test this code.

How can test this timeout exception by generating it manually using some http request which surely get time out.


Thanks in advance.
Posted

1 solution

If you can enter your code here..
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900