Increase timeout and decrement number of operations in AbstractByteBufTest.testToStringMultipleThreads

Motivation:

We saw some timeouts on the CI when the leak detection is enabled.

Modifications:

- Use smaller number of operations in test
- Increase timeout

Result:

CI not times out.
This commit is contained in:
Norman Maurer 2018-01-31 13:53:30 +01:00
parent f05c45e65d
commit 77156660ff

View File

@ -1700,12 +1700,12 @@ public abstract class AbstractByteBufTest {
copied.release();
}
@Test(timeout = 5000)
@Test(timeout = 10000)
public void testToStringMultipleThreads() throws Throwable {
buffer.clear();
buffer.writeBytes("Hello, World!".getBytes(CharsetUtil.ISO_8859_1));
final AtomicInteger counter = new AtomicInteger(60000);
final AtomicInteger counter = new AtomicInteger(30000);
final AtomicReference<Throwable> errorRef = new AtomicReference<Throwable>();
List<Thread> threads = new ArrayList<Thread>();
for (int i = 0; i < 10; i++) {