defradb icon indicating copy to clipboard operation
defradb copied to clipboard

Add tests that tests blocks with multiple heads

Open islamaliev opened this issue 6 months ago • 0 comments

At the moment we don't have any test that tests merging a block with multiple heads. If we pick the first head all tests will pass. The relevant code is in internal/db/merge.go in func (mp *mergeProcessor) loadBlocks.

This is sensitive and crucial part of defradb and should be properly tested.

This will be covered anyway once #2769 is in place, but it's encryption-related and we might want to have a separate test focused purely on this part.

islamaliev avatar Aug 14 '24 10:08 islamaliev