Commit 3d8d843
committed
Fix the build timeout when 'leak' profile is active
Motivation:
AbstractByteBufTest.testInternalBuffer() uses writeByte() operations to
populate the sample data. Usually, this isn't a problem, but it starts
to take a lot of time when the resource leak detection level gets
higher.
In our CI machine, testInternalBuffer() takes more than 30 minutes,
causing the build timeout when the 'leak' profile is active (paranoid
level resource detection.)
Modification:
Populate the sample data using ThreadLocalRandom.nextBytes() instead of
using millions of writeByte() operations.
Result:
Test runs much faster when leak detection level is high.1 parent 0a8ff3b commit 3d8d843
1 file changed
Lines changed: 5 additions & 4 deletions
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
1742 | 1743 | | |
1743 | 1744 | | |
1744 | 1745 | | |
1745 | | - | |
1746 | | - | |
1747 | | - | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
1748 | 1749 | | |
1749 | 1750 | | |
1750 | 1751 | | |
1751 | 1752 | | |
1752 | 1753 | | |
1753 | | - | |
| 1754 | + | |
1754 | 1755 | | |
1755 | 1756 | | |
1756 | 1757 | | |
| |||
0 commit comments