Skip to content

Commit

Permalink
fixing failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lolocohen committed Apr 21, 2018
1 parent 83a3879 commit f69ef70
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -158,7 +158,7 @@ protected void testMultipleJobs() throws Exception {
try {
pool.setSize(2);
pool.awaitConnections(Operator.EQUAL, 2, 5000L, JPPFClientConnectionStatus.workingStatuses());
assertEquals(2, pool.getConnections(JPPFClientConnectionStatus.workingStatuses()));
assertEquals(2, pool.getConnections(JPPFClientConnectionStatus.workingStatuses()).size());
final String name = getClass().getSimpleName() + '.' + ReflectionUtils.getCurrentMethodName();
final List<JPPFJob> jobs = new ArrayList<>(nbJobs);
for (int i=1; i<=nbJobs; i++) jobs.add(BaseTestHelper.createJob(name + '-' + i, false, false, nbTasks, LifeCycleTask.class, 10L));
Expand All @@ -178,7 +178,7 @@ protected void testMultipleJobs() throws Exception {
} finally {
pool.setSize(1);
pool.awaitConnections(Operator.EQUAL, 1, 5000L, JPPFClientConnectionStatus.workingStatuses());
assertEquals(1, pool.getConnections(JPPFClientConnectionStatus.workingStatuses()));
assertEquals(1, pool.getConnections(JPPFClientConnectionStatus.workingStatuses()).size());
}
}

Expand Down

0 comments on commit f69ef70

Please sign in to comment.