From e68d76b56d740b85d2aed83d87db598786b75680 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Thu, 10 Oct 2019 16:43:38 +0900 Subject: [PATCH] Add timeout to tests --- BTCPayServer.Tests/AuthenticationTests.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/BTCPayServer.Tests/AuthenticationTests.cs b/BTCPayServer.Tests/AuthenticationTests.cs index 66f5e3f23..450bce7f2 100644 --- a/BTCPayServer.Tests/AuthenticationTests.cs +++ b/BTCPayServer.Tests/AuthenticationTests.cs @@ -31,13 +31,14 @@ namespace BTCPayServer.Tests { public class AuthenticationTests { + public const int TestTimeout = 60_000; public AuthenticationTests(ITestOutputHelper helper) { Logs.Tester = new XUnitLog(helper) {Name = "Tests"}; Logs.LogProvider = new XUnitLogProvider(helper); } - [Fact] + [Fact(Timeout = TestTimeout)] [Trait("Integration", "Integration")] public async Task GetRedirectedToLoginPathOnChallenge() { @@ -59,7 +60,7 @@ namespace BTCPayServer.Tests } } - [Fact] + [Fact(Timeout = TestTimeout)] [Trait("Integration", "Integration")] public async Task CanGetOpenIdConfiguration() { @@ -80,7 +81,7 @@ namespace BTCPayServer.Tests } } - [Fact] + [Fact(Timeout = TestTimeout)] [Trait("Integration", "Integration")] public async Task CanUseNonInteractiveFlows() { @@ -100,8 +101,8 @@ namespace BTCPayServer.Tests } } + [Fact(Timeout = TestTimeout)] [Trait("Selenium", "Selenium")] - [Fact] public async Task CanUseImplicitFlow() { using (var s = SeleniumTester.Create()) @@ -196,8 +197,8 @@ namespace BTCPayServer.Tests } + [Fact(Timeout = TestTimeout)] [Trait("Selenium", "Selenium")] - [Fact] public async Task CanUseCodeFlow() { using (var s = SeleniumTester.Create())