NO-JIRA Using less resources from public clouds on tests

LibaioTest was failing because of a test that was allocating
500 positions on libaio.
Which may not be available on Travis every time.
This commit is contained in:
Clebert Suconic 2018-09-04 12:47:26 -04:00
parent c811ccbeb5
commit 2b633ee5c5
1 changed files with 2 additions and 2 deletions

View File

@ -630,7 +630,7 @@ public class LibaioTest {
@Test @Test
public void testBlockedCallback() throws Exception { public void testBlockedCallback() throws Exception {
final LibaioContext blockedContext = new LibaioContext(500, true, true); final LibaioContext blockedContext = new LibaioContext(LIBAIO_QUEUE_SIZE, true, true);
Thread t = new Thread() { Thread t = new Thread() {
@Override @Override
public void run() { public void run() {
@ -640,7 +640,7 @@ public class LibaioTest {
t.start(); t.start();
int NUMBER_OF_BLOCKS = 5000; int NUMBER_OF_BLOCKS = LIBAIO_QUEUE_SIZE * 10;
final CountDownLatch latch = new CountDownLatch(NUMBER_OF_BLOCKS); final CountDownLatch latch = new CountDownLatch(NUMBER_OF_BLOCKS);