Fixes simultaneous run of WizardTest and TreeTests.

This commit is contained in:
Mikhail Filippov 2014-04-29 12:20:20 +04:00
parent c8ae317c9b
commit db5194107d
2 changed files with 3 additions and 1 deletions

View File

@ -36,6 +36,7 @@ using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Security;
using System.Text;
using System.Threading;
using System.Windows.Forms;
namespace XenAdmin.Core
@ -139,6 +140,7 @@ namespace XenAdmin.Core
public static Win32Window GetWindowWithText(string text, Predicate<Win32Window> match)
{
Util.ThrowIfParameterNull(match, "match");
Thread.Sleep(100);
foreach (Win32Window window in TopLevelWindows)
{
if (window.Text == text && match(window))

View File

@ -49,7 +49,7 @@ namespace XenAdminTests.TabsAndMenus
{
}
[Test, Timeout(60000)]
[Test, Timeout(100000)]
public void AddALotOfVIFsThenRemoveThemShouldNotThrowAnException()
{
const int MAX_VIFS_TO_ADD = 100;