Fix tanks being empty on round start (#4696)
* Fix tanks being empty on round start * Fix test. Co-authored-by: Vera Aguilera Puerto <gradientvera@outlook.com>
This commit is contained in:
@@ -148,6 +148,7 @@ namespace Content.IntegrationTests.Tests.Fluids
|
||||
|
||||
float sEvaporateTime = default;
|
||||
PuddleComponent sPuddle = null;
|
||||
Solution solution = null;
|
||||
ReagentUnit sPuddleStartingVolume = default;
|
||||
|
||||
// Spawn a puddle
|
||||
@@ -213,14 +214,8 @@ namespace Content.IntegrationTests.Tests.Fluids
|
||||
// Check that the puddle is unpaused
|
||||
Assert.False(sPuddle.Owner.Paused);
|
||||
|
||||
// Check that the puddle has evaporated some of its volume
|
||||
Assert.That(sPuddle.CurrentVolume, Is.LessThan(sPuddleStartingVolume));
|
||||
|
||||
// If its new volume is zero it should have been deleted
|
||||
if (sPuddle.CurrentVolume == ReagentUnit.Zero)
|
||||
{
|
||||
Assert.True(sPuddle.Deleted);
|
||||
}
|
||||
// By now, the puddle should have evaporated and deleted.
|
||||
Assert.True(sPuddle.Deleted);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user