There is a race condition in my Drupal module, that can be reproduced like this:
- User A loads a form
- User B loads a form
- User B submits their form
- User A submits their form
Things go wrong at step 4. I would like to write a failing test for this before I fix the race condition. Is it possible to do this with Simpletest?
As far as I can see, Simpletest only simulates one browser. I would like to simulate multiple browsers, and manually specify how the actions performed on them are interleaved. If this isn't possible with Simpletest, what other testing frameworks can do this?