Fix content test warnings (#9865)

* Fix content test warnings

* while I'm here

* fix

Co-authored-by: wrexbe <wrexbe@protonmail.com>
This commit is contained in:
metalgearsloth
2022-07-20 14:48:44 +10:00
committed by GitHub
parent 7e21b55781
commit b7623b6c08
6 changed files with 36 additions and 38 deletions

View File

@@ -16,8 +16,8 @@ namespace Content.IntegrationTests.Tests
[TestFixture]
public sealed class PostMapInitTest
{
public const bool SkipTestMaps = true;
public const string TestMapsPath = "/Maps/Test/";
private const bool SkipTestMaps = true;
private const string TestMapsPath = "/Maps/Test/";
[Test]
public async Task NoSavedPostMapInitTest()
@@ -63,7 +63,7 @@ namespace Content.IntegrationTests.Tests
private static string[] GetMapNames()
{
Task<string[]> task = null;
Task<string[]> task;
using (ExecutionContext.SuppressFlow())
{
task = Task.Run(static async () =>
@@ -99,7 +99,7 @@ namespace Content.IntegrationTests.Tests
return task.GetAwaiter().GetResult();
}
[Test, TestCaseSource("GetMapNames")]
[Test, TestCaseSource(nameof(GetMapNames))]
public async Task MapsLoadableTest(string mapName)
{
await using var pairTracker = await PoolManager.GetServerClient(new PoolSettings{NoClient = true});