Use independent Random instances with fixed seed values for consistency.
Also use the wait form described in JCIP 14.2.2.
Tried a couple of seed values that would still exercise the tests but complete in under a minute on my machine. The modification to the synchronizer, e.g. using wait in a loop with condition predicate being checked as described by Goetz et al in JCIP 14.2.2, might have fixed a bug.
Test consistently passes and in a reasonable amount of time.
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* Use fixed Random seed values and condition predicate checking for test consistency.
-- File Changes --
M test/org/jitsi/sctp4j/SctpTransferTest.java (23)
M test/org/jitsi/sctp4j/TestLink.java (10)
-- Patch Links --
Reply to this email directly or view it on GitHub: