From 32900628319fc15678a1b358dc1bcd4e321b6708 Mon Sep 17 00:00:00 2001 From: Javier Gonzalez Date: Tue, 28 Aug 2018 17:41:35 +0200 Subject: [PATCH] Changed the mov for a jpg to be accpeted by the test server --- .../OCCommunicationLibTests/OCCommunicationLibTests.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OCCommunicationLib/OCCommunicationLibTests/OCCommunicationLibTests.m b/OCCommunicationLib/OCCommunicationLibTests/OCCommunicationLibTests.m index c36b946a..82aedb07 100644 --- a/OCCommunicationLib/OCCommunicationLibTests/OCCommunicationLibTests.m +++ b/OCCommunicationLib/OCCommunicationLibTests/OCCommunicationLibTests.m @@ -1436,10 +1436,10 @@ - (void) testUploadAFileWithSpecialCharacters { dispatch_semaphore_t semaphore = dispatch_semaphore_create(0); //Upload test file - NSString *localPath = [[NSBundle bundleForClass:[self class]] pathForResource:@"video" ofType:@"MOV"]; + NSString *localPath = [[NSBundle bundleForClass:[self class]] pathForResource:@"test" ofType:@"jpeg"]; //Path of server file file (Special character added in file name) - NSString *serverUrl = [NSString stringWithFormat:@"%@%@/Test Upload/video@.mov", k_webdav_base_url, k_path_test_folder]; + NSString *serverUrl = [NSString stringWithFormat:@"%@%@/Test Upload/test@.jpg", k_webdav_base_url, k_path_test_folder]; serverUrl = [serverUrl stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; NSURLSessionUploadTask *uploadTask = nil; @@ -1531,10 +1531,10 @@ - (void) testUploadFileWithSessionAndSpecialCharacters { dispatch_semaphore_t semaphore = dispatch_semaphore_create(0); //Upload test file - NSString *localPath = [[NSBundle bundleForClass:[self class]] pathForResource:@"video" ofType:@"MOV"]; + NSString *localPath = [[NSBundle bundleForClass:[self class]] pathForResource:@"test" ofType:@"jpeg"]; //Path of server file file (Special character added in file name) - NSString *serverUrl = [NSString stringWithFormat:@"%@%@/Test Upload/video@.mov", k_webdav_base_url, k_path_test_folder]; + NSString *serverUrl = [NSString stringWithFormat:@"%@%@/Test Upload/test@.jpg", k_webdav_base_url, k_path_test_folder]; serverUrl = [serverUrl stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; NSURLSessionUploadTask *uploadTask = nil;