mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-29 08:00:19 +01:00
Whatever
This commit is contained in:
@@ -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}\"");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user