mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 20:36:33 +01:00
Fixes simultaneous run of WizardTest and TreeTests.
This commit is contained in:
parent
c8ae317c9b
commit
db5194107d
@ -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))
|
||||
|
@ -49,7 +49,7 @@ namespace XenAdminTests.TabsAndMenus
|
||||
{
|
||||
}
|
||||
|
||||
[Test, Timeout(60000)]
|
||||
[Test, Timeout(100000)]
|
||||
public void AddALotOfVIFsThenRemoveThemShouldNotThrowAnException()
|
||||
{
|
||||
const int MAX_VIFS_TO_ADD = 100;
|
||||
|
Loading…
Reference in New Issue
Block a user