Testing jobs that queue commands to buffers

I have been trying to get a test on a job that calls AddComponent on a EntityCommandBuffer.Concurrent. This job is working as I expect when I run the game.

Ideally, I would have liked to just interrogate the queue after the job, but I could not find that kind of functionality. I think the DOTS team should add a way to do this. They could only expose it through one of the testing assemblies if there are concerns of polluting the interface.

Instead, I tried calling CommandBufferSystem.Update (after calling update on my job) and then asserting the count of entities with the component I am adding via an EntityQuery.

I have tried with and without also calling EntityManager.CompleteAllJobs before the query.

I thought I might be writing the query wrong, but when I verified that is correct multiple ways. I changed the component type to one of my job input components and got the correct count. I also wrote a LINQ query to filter down my starting entities and get the same results.

So far, no luck. Any recommendations before I go digging through source?

Playback() runs queued buffer and makes structural changes