Fix compilation errors in tests from update (#34272)

Required for https://github.com/space-wizards/RobustToolbox/pull/5590 to not cause compile fails, but can be merged on its own
This commit is contained in:
Pieter-Jan Briers
2025-01-07 19:27:54 +01:00
committed by GitHub
parent aa458a24ca
commit af75c1a92b
2 changed files with 2 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ namespace Content.IntegrationTests.Tests.GameObjects.Components.Mobs
{ {
playerUid = serverPlayerManager.Sessions.Single().AttachedEntity.GetValueOrDefault(); playerUid = serverPlayerManager.Sessions.Single().AttachedEntity.GetValueOrDefault();
#pragma warning disable NUnit2045 // Interdependent assertions. #pragma warning disable NUnit2045 // Interdependent assertions.
Assert.That(playerUid, Is.Not.EqualTo(default)); Assert.That(playerUid, Is.Not.EqualTo(default(EntityUid)));
// Making sure it exists // Making sure it exists
Assert.That(entManager.HasComponent<AlertsComponent>(playerUid)); Assert.That(entManager.HasComponent<AlertsComponent>(playerUid));
#pragma warning restore NUnit2045 #pragma warning restore NUnit2045

View File

@@ -17,7 +17,6 @@ using Robust.Shared.Map;
using Robust.Shared.Map.Components; using Robust.Shared.Map.Components;
using Robust.Shared.Prototypes; using Robust.Shared.Prototypes;
using Content.Shared.Station.Components; using Content.Shared.Station.Components;
using FastAccessors;
using Robust.Shared.Utility; using Robust.Shared.Utility;
using YamlDotNet.RepresentationModel; using YamlDotNet.RepresentationModel;