Automated Unit Tests fail at random points with assorted errors
Posted: Tue 17 Mar 2015 10:48
We have an MVC4/Entity Framework 4/dotConnect 7.3.171.0 application which under normal use i.e. manual testing/development works well, however, when we run our automated unit test suite it fails at random places with various postgresql errors:
I am unable to recreate the problem in a small test project, because the application works fine under sporadic use, but clearly there is something failing when a rapid sequence of database access occurs.
I am reluctant to go into production when unit testing is not 100% as this could be a stress related issue that is exposed by multiple users.
Does anyone have any suggestions what might be causing this - and any possible solutions?
Paul W
- could not send data to client: Connection reset by peer
unexpected EOF on client connection
transport channel is closed
Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host
I am unable to recreate the problem in a small test project, because the application works fine under sporadic use, but clearly there is something failing when a rapid sequence of database access occurs.
I am reluctant to go into production when unit testing is not 100% as this could be a stress related issue that is exposed by multiple users.
Does anyone have any suggestions what might be causing this - and any possible solutions?
Paul W