Tired of these fucking rate limits GitHub!!!

This commit is contained in:
Jordan Brown
2020-08-19 22:25:06 -04:00
parent fd8d5f31ba
commit 1003c22481
@@ -66,6 +66,13 @@ namespace Tgstation.Server.Tests
var updatedAssemblyVersion = FileVersionInfo.GetVersionInfo(updatedAssemblyPath);
Assert.AreEqual(testUpdateVersion, Version.Parse(updatedAssemblyVersion.FileVersion).Semver());
}
catch (RateLimitException)
{
if (String.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("TGS4_TEST_GITHUB_TOKEN")))
throw;
Assert.Inconclusive("GitHub rate limit hit!");
}
finally
{
serverCts.Cancel();