[Tests]Increase WebView2 loading timeout (#29760)

This commit is contained in:
Davide Giacometti
2023-11-09 13:22:35 +01:00
committed by GitHub
parent 889de94fa2
commit 534b9673cd
2 changed files with 2 additions and 4 deletions

View File

@@ -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]

View File

@@ -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]