mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Push out multi threaded sleeps, as the post-transaction-commit hooks seem to take longer on some machines than you might expect
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@23208 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1210,8 +1210,15 @@ public class TaggingServiceImplTest extends TestCase
|
||||
System.out.println(Thread.currentThread() + " - Tagging");
|
||||
return null;
|
||||
}
|
||||
}, false, true);
|
||||
}, false, true
|
||||
);
|
||||
System.out.println(Thread.currentThread() + " - Done tagging");
|
||||
|
||||
// Wait briefly for thing to catch up, before we
|
||||
// declare ourselves to be done
|
||||
try {
|
||||
Thread.sleep(150);
|
||||
} catch (InterruptedException e) {}
|
||||
}
|
||||
});
|
||||
threads.add(t);
|
||||
@@ -1261,7 +1268,7 @@ public class TaggingServiceImplTest extends TestCase
|
||||
}
|
||||
|
||||
// Extra sleep just to be sure things are quiet before we continue
|
||||
Thread.sleep(150);
|
||||
Thread.sleep(175);
|
||||
|
||||
// Now check that things ended up as planned
|
||||
tx = this.transactionService.getUserTransaction();
|
||||
|
Reference in New Issue
Block a user