From 654cfd846daae310dd6281a632fa6afefe535cf5 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Wed, 27 Jan 2021 20:35:20 -0500 Subject: [PATCH] Another rate limit exception test failure [TGSDeploy] --- tests/Tgstation.Server.Tests/IntegrationTest.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/Tgstation.Server.Tests/IntegrationTest.cs b/tests/Tgstation.Server.Tests/IntegrationTest.cs index 105499d95a..26c192b618 100644 --- a/tests/Tgstation.Server.Tests/IntegrationTest.cs +++ b/tests/Tgstation.Server.Tests/IntegrationTest.cs @@ -504,6 +504,13 @@ namespace Tgstation.Server.Tests Assert.AreEqual(2, node2Info.SwarmServers.Count); Assert.IsNotNull(node2Info.SwarmServers.SingleOrDefault(x => x.Identifier == "controller")); } + catch (RateLimitException ex) + { + if (String.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("TGS4_TEST_GITHUB_TOKEN"))) + throw; + + Assert.Inconclusive("GitHub rate limit hit: {0}", ex); + } finally { serverCts.Cancel();