Hi,
I get sporadic threading-related failures in some unit tests when building TestNG 5.10 (or 5.9) on a dual-core Linux x86_64
machine with OpenJDK 6.
The errors occur in the DataProviderThreadPoolSizeTest class, methods shouldUseDefaultDataProviderThreadCount() and
shouldUseSpecifiedDataProviderThreadCount(), each with probability around 3% (measured by invoking each method separately 100
times).
Error messages seem to be the same every time:
java.lang.AssertionError: expected:<10> but was:<9>
at
test.thread.DataProviderThreadPoolSizeTest.shouldUseDefaultDataProviderThreadCount(DataProviderThreadPoolSizeTest.java:16)
java.lang.AssertionError: expected:<3> but was:<2>
at
test.thread.DataProviderThreadPoolSizeTest.shouldUseSpecifiedDataProviderThreadCount(DataProviderThreadPoolSizeTest.java:33)
Any idea what is going on here?
Cheers,
Marcus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkpzB3AACgkQXjXn6TzcAQmNVgCeKZNYWLUWrBY1SOa6BqkslGFp
uLsAoJIqlC2oer+bnMRZ7O8f3Ck8oBGp
=58nl
-----END PGP SIGNATURE-----