Add randomSeed parameter to BattleImpl, fix flaky test
This commit is contained in:
3 files changed
+11
-3
No files matched your search
@@ -54,7 +54,7 @@ public class IntegrationTestRunner
|
||||
return new BattlePartyImpl(party, x.Indices.Select(y => new ResponsibleIndex(y[0], y[1])).ToArray());
|
||||
}).ProcessOneAtATime().GetResultsAsync();
|
||||
var battle = new BattleImpl(library, parties, test.BattleSetup.CanFlee, test.BattleSetup.NumberOfSides,
|
||||
test.BattleSetup.PositionsPerSide);
|
||||
test.BattleSetup.PositionsPerSide, randomSeed: test.BattleSetup.Seed);
|
||||
|
||||
foreach (var action in test.Actions)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user