mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
[Tests]Increase WebView2 loading timeout (#29760)
This commit is contained in:
committed by
GitHub
parent
889de94fa2
commit
534b9673cd
@@ -17,7 +17,7 @@ namespace MarkdownPreviewHandlerUnitTests
|
|||||||
public class MarkdownPreviewHandlerTest
|
public class MarkdownPreviewHandlerTest
|
||||||
{
|
{
|
||||||
// A long timeout is needed. WebView2 can take a long time to load the first time in some CI systems.
|
// A long timeout is needed. WebView2 can take a long time to load the first time in some CI systems.
|
||||||
private static readonly int HardTimeoutInMilliseconds = 30000;
|
private static readonly int HardTimeoutInMilliseconds = 60000;
|
||||||
private static readonly int SleepTimeInMilliseconds = 200;
|
private static readonly int SleepTimeInMilliseconds = 200;
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
|
|||||||
@@ -4,9 +4,7 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
using System.Runtime.InteropServices.ComTypes;
|
using System.Runtime.InteropServices.ComTypes;
|
||||||
using System.Text;
|
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using Microsoft.PowerToys.PreviewHandler.Svg;
|
using Microsoft.PowerToys.PreviewHandler.Svg;
|
||||||
@@ -22,7 +20,7 @@ namespace SvgPreviewHandlerUnitTests
|
|||||||
public class SvgPreviewControlTests
|
public class SvgPreviewControlTests
|
||||||
{
|
{
|
||||||
// A long timeout is needed. WebView2 can take a long time to load the first time in some CI systems.
|
// A long timeout is needed. WebView2 can take a long time to load the first time in some CI systems.
|
||||||
private static readonly int HardTimeoutInMilliseconds = 30000;
|
private static readonly int HardTimeoutInMilliseconds = 60000;
|
||||||
private static readonly int SleepTimeInMilliseconds = 200;
|
private static readonly int SleepTimeInMilliseconds = 200;
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
|
|||||||
Reference in New Issue
Block a user