Retire RTS daemon owner test residue

This commit is contained in:
Meta Vens 2026-07-06 01:18:11 +01:00
commit 9e0a8726c7
2 changed files with 17 additions and 1 deletions

View file

@ -16310,6 +16310,22 @@ static void RequireUnityDoesNotCallSharedSimulationTicks(string root)
string.Join(", ", sharedRuntimeAuthorityHits));
}
var staleRuntimeSpecificTestAuthoritySources = new Dictionary<string, string>
{
["Assets/Scripts/Tests/DaemonRuntimeDocumentTests.cs"] = daemonRuntimeDocumentTests
}
.Where(pair =>
pair.Value.Contains("daemon-rts", StringComparison.Ordinal) ||
pair.Value.Contains("rts-commander", StringComparison.Ordinal))
.Select(pair => pair.Key)
.ToArray();
if (staleRuntimeSpecificTestAuthoritySources.Length > 0)
{
throw new InvalidOperationException(
"Aetheria daemon tests must assert daemon-owned simulation vocabulary, not stale RTS owner kinds: " +
string.Join(", ", staleRuntimeSpecificTestAuthoritySources));
}
var staleRuntimeSpecificAssetSources = new Dictionary<string, string>
{
["Aetheria.Rts.Web/Electron/aetheria-rts-local-documents.ts"] = rtsLocalDocuments,

View file

@ -1936,7 +1936,7 @@ public class DaemonRuntimeDocumentTests
Assert.IsTrue(zone.Projectiles.All(projectile => projectile.Active));
Assert.IsTrue(zone.Projectiles.Any(projectile => projectile.SourceEntityIndex == 0 && projectile.TargetEntityIndex == 1));
Assert.IsTrue(zone.Entities.All(entity => entity.WeaponStates.Any(weapon =>
weapon.OwnerKind == "daemon-rts" &&
weapon.OwnerKind == "daemon-simulation" &&
weapon.BehaviorKind == "ProjectileWeapon")));
var frame = AetheriaRuntimeDaemonFrameDocument.Create(