You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by ga...@apache.org on 2014/04/17 21:53:43 UTC

svn commit: r1588355 - /chemistry/objectivecmis/trunk/ObjectiveCMISTests/ObjectiveCMISTests.m

Author: gavincornwell
Date: Thu Apr 17 19:53:43 2014
New Revision: 1588355

URL: http://svn.apache.org/r1588355
Log:
Add delay before checking in document in testCheckoutCheckin method to mitigate intermittent test failures.

Modified:
    chemistry/objectivecmis/trunk/ObjectiveCMISTests/ObjectiveCMISTests.m

Modified: chemistry/objectivecmis/trunk/ObjectiveCMISTests/ObjectiveCMISTests.m
URL: http://svn.apache.org/viewvc/chemistry/objectivecmis/trunk/ObjectiveCMISTests/ObjectiveCMISTests.m?rev=1588355&r1=1588354&r2=1588355&view=diff
==============================================================================
--- chemistry/objectivecmis/trunk/ObjectiveCMISTests/ObjectiveCMISTests.m (original)
+++ chemistry/objectivecmis/trunk/ObjectiveCMISTests/ObjectiveCMISTests.m Thu Apr 17 19:53:43 2014
@@ -1953,6 +1953,9 @@
                 // check we got the working copy
                 XCTAssertNotNil(privateWorkingCopy, @"Expected to recieve the private working copy object");
                 
+                // sleep for a couple of seconds before checking back in
+                [NSThread sleepForTimeInterval:2.0];
+                
                 // checkin the test document
                 NSString *updatedFilePath = [[NSBundle bundleForClass:[self class]] pathForResource:@"test_file_2.txt" ofType:nil];
                 [privateWorkingCopy checkInAsMajorVersion:YES filePath:updatedFilePath mimeType:@"text/plain" properties:nil checkinComment:@"Next version" completionBlock:^(CMISDocument *checkedInDocument, NSError *error) {