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

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

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

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

      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");
      

              dberinde@redhat.com Dan Berindei (Inactive)
              dberinde@redhat.com Dan Berindei (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: