-edit- simplier repo and actual problem with code below
Error (full stack below)
Assertion failure. Values are not equal.
Expected: 2 == 1```
Repo
```cs
[Test]
public void BrokenTest()
{
var entity = this.Manager.CreateEntity(typeof(Active), typeof(ActivePrevious));
this.Manager.SetComponentEnabled<Active>(entity, false);
this.Manager.SetComponentEnabled<ActivePrevious>(entity, false);
var system = this.World.CreateSystem<TestSystem>();
system.Update(this.WorldUnmanaged);
}
public partial struct TestSystem : ISystem
{
/// <inheritdoc />
[BurstCompile]
public void OnUpdate(ref SystemState state)
{
new SetPreviousJob().ScheduleParallel();
}
[BurstCompile]
[WithChangeFilter(typeof(Active))]
[WithOptions(EntityQueryOptions.IgnoreComponentEnabledState)]
private partial struct SetPreviousJob : IJobEntity
{
private void Execute(EnabledRefRW<ActivePrevious> previous, EnabledRefRO<Active> active)
{
previous.ValueRW = active.ValueRO;
}
}
}
public struct Active : IComponentData, IEnableableComponent
{
}
public struct ActivePrevious : IComponentData, IEnableableComponent
{
}```