Blog Post

Increasing database unit tests connection timeout period in VS 2012

,

Have your ever had a timeout error in a visual studio 2012 unit test like below?

Timeout error

How to get around this problem is to modify your unit testing app.config file to increase the “CommandTimeout” setting to the desired period of time (in seconds) see below:-

Timeout config

Run the test again and your will notice the test shout pass (or give your another error) #

Timeout config

Thanks for reading!

Andrew

Rate

You rated this post out of 5. Change rating

Share

Share

Rate

You rated this post out of 5. Change rating