Skip to content

Commit

Permalink
NO-JIRA Using less resources from public clouds on tests
Browse files Browse the repository at this point in the history
LibaioTest was failing because of a test that was allocating
500 positions on libaio.
Which may not be available on Travis every time.

(cherry picked from commit 2b633ee)
  • Loading branch information
clebertsuconic committed Sep 4, 2018
1 parent 0ce276e commit 1b9062b
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -630,7 +630,7 @@ public void testIOExceptionConditions() throws Exception {

@Test
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() {
@Override
public void run() {
Expand All @@ -640,7 +640,7 @@ public void run() {

t.start();

int NUMBER_OF_BLOCKS = 5000;
int NUMBER_OF_BLOCKS = LIBAIO_QUEUE_SIZE * 10;

final CountDownLatch latch = new CountDownLatch(NUMBER_OF_BLOCKS);

Expand Down

0 comments on commit 1b9062b

Please sign in to comment.