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:
Nick Burch
2010-10-19 12:25:29 +00:00
parent 97852b060b
commit eef6a3fc3f

View File

@@ -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();