This commit is contained in:
Jordan Brown
2020-05-15 23:14:12 -04:00
parent cb5dbffcc6
commit fea6deb33c
@@ -27,6 +27,9 @@ namespace Tgstation.Server.Host.System.Tests
[TestMethod]
public async Task TestGetUsername()
{
if (!String.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("TRAVIS")))
Assert.Inconclusive("This test doesn't work on TRAVIS CI!");
var username = await features.GetExecutingUsername(global::System.Diagnostics.Process.GetCurrentProcess(), default);
Assert.IsTrue(username.Contains(Environment.UserName), $"Exepcted a string containing \"{Environment.UserName}\", got \"{username}\"");
}