lance
lance copied to clipboard
chore: add a systematic test for concurrent transactions
This PR adds a way to easily write test for concurrent transactions.
we define a new class called ParallelOperations
where we can define:
- the initial state of a dataset
- provide a list of operation to apply to the dataset
- end state verifier
The tests will automatically test applying the transactions in random order and make sure the transactions are applied correctly
I will add more tests in subsequent PRs
I will also add a failure test where we expect certain transactions to fail in subsequent PRs