Fix wrong assert message in DeviceLinkingTest (#35964)

This commit is contained in:
Tayrtahn
2025-03-20 15:58:09 -04:00
committed by GitHub
parent 5dd1cd4bdb
commit ecf22daff7

View File

@@ -64,7 +64,7 @@ public sealed class DeviceLinkingTest
var sinkEnt = server.EntMan.SpawnEntity(proto.ID, coord); var sinkEnt = server.EntMan.SpawnEntity(proto.ID, coord);
// Get the actual sink component, since the one we got from the prototype doesn't have its owner set up // Get the actual sink component, since the one we got from the prototype doesn't have its owner set up
Assert.That(server.EntMan.TryGetComponent<DeviceLinkSinkComponent>(sinkEnt, out var sinkComp), Assert.That(server.EntMan.TryGetComponent<DeviceLinkSinkComponent>(sinkEnt, out var sinkComp),
$"Tester prototype does not have a DeviceLinkSourceComponent!"); $"{proto.ID} does not have a DeviceLinkSinkComponent!");
// Spawn the tester // Spawn the tester
var sourceEnt = server.EntMan.SpawnEntity(PortTesterProtoId, coord); var sourceEnt = server.EntMan.SpawnEntity(PortTesterProtoId, coord);