chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gavincornw...@apache.org
Subject svn commit: r1588355 - /chemistry/objectivecmis/trunk/ObjectiveCMISTests/ObjectiveCMISTests.m
Date Thu, 17 Apr 2014 19:53:43 GMT
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) {



Mime
View raw message