Hello,

I am trying to get updated unit tests working after some changes to the 
payment channels code. It is really a struggle to make changes and test 
this protocol because of the "wild west" locking/threading style of the 
bitcoinj library.  That is a discussion for another day (maybe for 0.15?). 

Now have a concrete case: 

Tests run fine individually, when I choose to run a single test. When all 
tests are run with "mvn test" there are a few tests that fail consistently 
every time.  There are some Thread.sleep in the test but extending these 
pauses, even a lot, does not seem to help. 

A few observations:
- Shutting off forking (-DforkCount=0) does not help, it actually fails a 
lot more tests that I did not touch.
- When running the test singly, it succeds with forking or no forking.
 
Does anyone have experience with this? 
What in bitcoinj's unit tests would one expect to be affected by tests 
running in parallel? 
Is there any static data in bitcoinj that is critically modified, and used 
in tests? 

-- 
You received this message because you are subscribed to the Google Groups 
"bitcoinj" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bitcoinj+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to