Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

GO-SQL blog A blog dedicated for SQL Server Developers alike!

My name is Andrew Fenna, and I am a database developer at The Laterooms Group. I have written this blog to educate my fellow database developers in subjects that I think are necessary to keep at the top of our game. I have been working with RDBMS’s since 2002 and I have worked within financial, gaming, public, and travel sectors within the Northwest of England. I have gained quite a lot of experience throughout my journey and have tackled some very difficult challenges along the way. Therefore, I am blogging my experiences, which I hope will give you the inspiration to try and tackle problems that are deemed impossible to start, but with some encouragement and guidance become much more simpler and structured, thank you for your time. Andrew J Fenna.

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

Comments

Leave a comment on the original post [gosql.co.uk, opens in a new window]

Loading comments...