]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
NOJIRA: Adding a delay of 3 seconds before testing for image derivatives.
authorremillet <remillet@yahoo.com>
Wed, 22 Apr 2015 19:35:10 +0000 (12:35 -0700)
committerremillet <remillet@yahoo.com>
Wed, 22 Apr 2015 19:35:10 +0000 (12:35 -0700)
services/blob/client/src/test/java/org/collectionspace/services/client/test/BlobScaleTest.java

index ce1fe34771b10ff2d13a24b2d68a2d1f8d33f20c..8e8246946d59b691bc76abea787ba0f8248fe820 100644 (file)
@@ -75,10 +75,14 @@ public class BlobScaleTest extends BaseServiceTest<AbstractCommonList> {
        }
        
        @Test(dataProvider = "testName", dependsOnMethods = {"scaleTest"})
-       public void scaleGETTest(String testName) throws MalformedURLException {
+       public void scaleGETTest(String testName) throws MalformedURLException, InterruptedException {
                this.setupRead();
         BlobClient client = new BlobClient();
         
+        // We seem to sometimes need a delay before Nuxeo finishes creating all the derivatives, so
+        // we'll put our thread to sleep for 3 seconds before checking
+        Thread.sleep(3000); // sleep for 3 seconds
+        
         for (int i = 0; i < allGeneratedImages.size(); i++) {
                ClientResponse<Response> res = client.getDerivativeContent(allGeneratedImages.get(i), "Thumbnail");
                assertStatusCode(res, testName);