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:
@@ -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});
|
||||
|
||||
Reference in New Issue
Block a user