ThreadAbortException when running two tests in parallel, one taking over 30 seconds

来源:互联网 发布:centos7 nginx nagios 编辑:程序博客网 时间:2024/05/23 13:34

http://connect.microsoft.com/VisualStudio/feedback/details/587390/threadabortexception-when-running-two-tests-in-parallel-one-taking-40-seconds


[TestMethod]public void TestMethod2(){    Thread.Sleep(35000);    // in default unit test settings, this line will never be reached    Console.WriteLine("TestMethod2");}


It is a VS problem.

During my Performance testing, i doing code and need to start 2 thread on running.

I also meet this problem.


What i resolved. Add a judgement

if duration > 30s, break;


原创粉丝点击