Fix Content.Benchmark warnings (#17771)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using BenchmarkDotNet.Attributes;
|
||||
using Content.IntegrationTests;
|
||||
@@ -9,7 +8,6 @@ using Content.Server.DeviceNetwork.Systems;
|
||||
using Robust.Shared;
|
||||
using Robust.Shared.Analyzers;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.IoC;
|
||||
using Robust.Shared.Map;
|
||||
|
||||
namespace Content.Benchmarks;
|
||||
@@ -23,8 +21,8 @@ public class DeviceNetworkingBenchmark
|
||||
private DeviceNetworkSystem _deviceNetworkSystem = default!;
|
||||
private EntityUid _sourceEntity;
|
||||
private EntityUid _sourceWirelessEntity;
|
||||
private List<EntityUid> _targetEntities = new();
|
||||
private List<EntityUid> _targetWirelessEntities = new();
|
||||
private readonly List<EntityUid> _targetEntities = new();
|
||||
private readonly List<EntityUid> _targetWirelessEntities = new();
|
||||
|
||||
|
||||
private NetworkPayload _payload = default!;
|
||||
@@ -58,7 +56,7 @@ public class DeviceNetworkingBenchmark
|
||||
public async Task SetupAsync()
|
||||
{
|
||||
ProgramShared.PathOffset = "../../../../";
|
||||
_pair = await PoolManager.GetServerClient(new PoolSettings{NoClient = true, ExtraPrototypes = Prototypes});
|
||||
_pair = await PoolManager.GetServerClient(new PoolSettings { NoClient = true, ExtraPrototypes = Prototypes });
|
||||
var server = _pair.Pair.Server;
|
||||
|
||||
await server.WaitPost(() =>
|
||||
|
||||
Reference in New Issue
Block a user