From 0092d49a3b1dee62dea489211e4d88e0bbe0d464 Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Mon, 8 Oct 2018 09:48:08 -0400 Subject: [PATCH] Warn when running integration test without a GitHub token --- tests/Tgstation.Server.Tests/TestingServer.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/Tgstation.Server.Tests/TestingServer.cs b/tests/Tgstation.Server.Tests/TestingServer.cs index c57637f7b3..f285079516 100644 --- a/tests/Tgstation.Server.Tests/TestingServer.cs +++ b/tests/Tgstation.Server.Tests/TestingServer.cs @@ -38,6 +38,9 @@ namespace Tgstation.Server.Tests if (String.IsNullOrEmpty(connectionString)) Assert.Fail("No connection string configured in env var TGS4_TEST_CONNECTION_STRING!"); + if (String.IsNullOrEmpty(gitHubAccessToken)) + Console.WriteLine("WARNING: No GitHub access token configured, test may fail due to rate limits!"); + var args = new List() { String.Format(CultureInfo.InvariantCulture, "Kestrel:EndPoints:Http:Url={0}", Url),