Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-4193

StateSequencer: state machine-based utility for synchronizing multi-threaded tests

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 7.0.0.Beta1
    • None
    • Test Suite
    • None

    Description

      I've previously written a CheckPoint class for the same purpose, but while the logs are a little clearer, it's still pretty hard to reason about the expected ordering of events with a CheckPoint-based test.

      StateSequencer-based tests should make it clear what the expected order of states should be from the beginning of the test:

      sequencer.logicalThread("t1", "t1:block", "t1:resume");
      sequencer.logicalThread("t2", "t2:do_stuff");
      sequencer.order("t1:block", "t2:do_stuff", "t1:resume");
      

      Attachments

        Activity

          People

            dberinde@redhat.com Dan Berindei (Inactive)
            dberinde@redhat.com Dan Berindei (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: