specify port range for the testing ignite instance#263
Conversation
so that unit tests can be run in parallel without interfering with each other
3ec028c to
d2e7f31
Compare
|
Is there a issue related to this PR? What does this PR try to solve? Parallel executions of This are example errors I get when running in parallel in at least two shells in separate working directories: % mvn test
…
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] TestMapReduceOSHDB_Ignite_ScanQuery.testOSMContributionView:6->TestMapReduce.testOSMContributionView:58 » ComputeUserUndeclared
[ERROR] TestMapReduceOSHDB_Ignite_ScanQuery.testOSMContributionViewStream:6->TestMapReduce.testOSMContributionViewStream:123 » Cache
[ERROR] TestMapReduceOSHDB_Ignite_ScanQuery.testOSMEntitySnapshotView:6->TestMapReduce.testOSMEntitySnapshotView:91 » ComputeUserUndeclared
[ERROR] TestMapReduceOSHDB_Ignite_ScanQuery.testOSMEntitySnapshotViewStream:6->TestMapReduce.testOSMEntitySnapshotViewStream:160 » Cache
[ERROR] TestMapReduceOSHDB_Ignite_ScanQuery.testTimeoutMapReduce » Unexpected excepti...
[INFO]
[ERROR] Tests run: 125, Failures: 0, Errors: 5, Skipped: 0
… |
yes, that was the rationale behind it. |
confirming. I thought these were gone in my testing, but maybe I didn't test it properly. The first actual exception I get is: 🤔 |
|
ok, I guess the problem was that the ipFinder property still had all possible ports listed ( This should be addressed "properly" now (choosing a 1 in 1000 random port for each test run). |
This should allow unit tests to be run in parallel without interfering with each other. (hopefully 🤞 )