summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2018-10-04 10:30:43 -0400
committerJoel Fischer <joeljfischer@gmail.com>2018-10-04 10:30:43 -0400
commitbf25720ccd78051d22438d2dcbe2a16354ca1254 (patch)
tree7a5b3dad2aa1c08bc2348a071f50f0a387a58d46
parent44b1895bb6336bb240ad9a373e5718619027b5f9 (diff)
downloadsdl_ios-bf25720ccd78051d22438d2dcbe2a16354ca1254.tar.gz
Fix tests
-rw-r--r--SmartDeviceLinkTests/DevAPISpecs/SDLFileManagerSpec.m2
-rw-r--r--SmartDeviceLinkTests/SDLFileManagerConfigurationSpec.m9
2 files changed, 2 insertions, 9 deletions
diff --git a/SmartDeviceLinkTests/DevAPISpecs/SDLFileManagerSpec.m b/SmartDeviceLinkTests/DevAPISpecs/SDLFileManagerSpec.m
index 68a24e4b6..afbd93873 100644
--- a/SmartDeviceLinkTests/DevAPISpecs/SDLFileManagerSpec.m
+++ b/SmartDeviceLinkTests/DevAPISpecs/SDLFileManagerSpec.m
@@ -1607,7 +1607,7 @@ describe(@"SDLFileManager reupload failed files", ^{
__block SDLFileManagerConfiguration *testFileManagerConfiguration = nil;
it(@"should set the max upload attempts to 2 if the configuration properties are not set", ^{
- testFileManagerConfiguration = [[SDLFileManagerConfiguration alloc] init];
+ testFileManagerConfiguration = [SDLFileManagerConfiguration defaultConfiguration];
testFileManager = [[SDLFileManager alloc] initWithConnectionManager:testConnectionManager configuration:testFileManagerConfiguration];
expect(testFileManager.maxFileUploadAttempts).to(equal(2));
diff --git a/SmartDeviceLinkTests/SDLFileManagerConfigurationSpec.m b/SmartDeviceLinkTests/SDLFileManagerConfigurationSpec.m
index 5b7742be2..c3d4b6abb 100644
--- a/SmartDeviceLinkTests/SDLFileManagerConfigurationSpec.m
+++ b/SmartDeviceLinkTests/SDLFileManagerConfigurationSpec.m
@@ -17,7 +17,7 @@ describe(@"A file manager configuration", ^{
__block SDLFileManagerConfiguration *testConfig = nil;
it(@"should get and set correctly", ^{
- testConfig = [[SDLFileManagerConfiguration alloc] init];
+ testConfig = [SDLFileManagerConfiguration defaultConfiguration];
testConfig.artworkRetryCount = 5;
testConfig.fileRetryCount = 1;
@@ -25,13 +25,6 @@ describe(@"A file manager configuration", ^{
expect(testConfig.fileRetryCount).to(equal(1));
});
- it(@"should be set to default configuration if parameters are not set", ^{
- testConfig = [[SDLFileManagerConfiguration alloc] init];
-
- expect(testConfig.artworkRetryCount).to(equal(1));
- expect(testConfig.fileRetryCount).to(equal(1));
- });
-
it(@"should instantiate correctly with the default configuration", ^{
testConfig = [SDLFileManagerConfiguration defaultConfiguration];