]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Make material arbitrage test more verbose (#27180)
authorTayrtahn <tayrtahn@gmail.com>
Sat, 20 Apr 2024 21:23:09 +0000 (17:23 -0400)
committerGitHub <noreply@github.com>
Sat, 20 Apr 2024 21:23:09 +0000 (07:23 +1000)
List entities spawned by destruction for debugging

Content.IntegrationTests/Tests/MaterialArbitrageTest.cs

index a2faef0dd4d57495c81375ea35024381e958c6dc..42c5471c4425336acef2229f36c8a931b073be6c 100644 (file)
@@ -183,7 +183,7 @@ public sealed class MaterialArbitrageTest
                 var spawnedPrice = await GetSpawnedPrice(spawnedEnts);
                 var price = await GetPrice(id);
                 if (spawnedPrice > 0 && price > 0)
-                    Assert.That(spawnedPrice, Is.LessThanOrEqualTo(price), $"{id} increases in price after being destroyed");
+                    Assert.That(spawnedPrice, Is.LessThanOrEqualTo(price), $"{id} increases in price after being destroyed\nEntities spawned on destruction: {string.Join(',', spawnedEnts)}");
 
                 // Check lathe production
                 if (latheRecipes.TryGetValue(id, out var recipe))