Skip to content

Commit

Permalink
Fix tests compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
einsteinx2 committed Nov 8, 2023
1 parent 13b8c5c commit d1f6782
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion UnitTests/MPPersistenceControllerTests.mm
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ - (void)testForwardRecord {
sessionId:[NSNumber numberWithLong:session.sessionId]
messages:@[message]
sessionTimeout:DEFAULT_SESSION_TIMEOUT
uploadInterval:DEFAULT_DEBUG_UPLOAD_INTERVAL
uploadInterval:DEFAULT_UPLOAD_INTERVAL
dataPlanId:@"test"
dataPlanVersion:@(1)];

Expand Down
16 changes: 8 additions & 8 deletions UnitTests/MPUploadBuilderTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ - (void)testInstanceWithSession {
sessionId:[NSNumber numberWithLong:session.sessionId]
messages:@[message]
sessionTimeout:DEFAULT_SESSION_TIMEOUT
uploadInterval:DEFAULT_DEBUG_UPLOAD_INTERVAL
uploadInterval:DEFAULT_UPLOAD_INTERVAL
dataPlanId:message.dataPlanId
dataPlanVersion:message.dataPlanVersion
];
Expand Down Expand Up @@ -214,7 +214,7 @@ - (void)testInstanceWithoutSession {

MPUploadBuilder *uploadBuilder = [MPUploadBuilder newBuilderWithMpid:[MPPersistenceController mpId]
messages:@[message]
uploadInterval:DEFAULT_DEBUG_UPLOAD_INTERVAL
uploadInterval:DEFAULT_UPLOAD_INTERVAL
dataPlanId:message.dataPlanId
dataPlanVersion:message.dataPlanVersion
];
Expand Down Expand Up @@ -294,7 +294,7 @@ - (void)testInstanceWithDataPlanId {
sessionId:[NSNumber numberWithLong:session.sessionId]
messages:@[message]
sessionTimeout:DEFAULT_SESSION_TIMEOUT
uploadInterval:DEFAULT_DEBUG_UPLOAD_INTERVAL
uploadInterval:DEFAULT_UPLOAD_INTERVAL
dataPlanId:message.dataPlanId
dataPlanVersion:message.dataPlanVersion
];
Expand Down Expand Up @@ -376,7 +376,7 @@ - (void)testInstanceWithDataPlanVersion {
sessionId:[NSNumber numberWithLong:session.sessionId]
messages:@[message]
sessionTimeout:DEFAULT_SESSION_TIMEOUT
uploadInterval:DEFAULT_DEBUG_UPLOAD_INTERVAL
uploadInterval:DEFAULT_UPLOAD_INTERVAL
dataPlanId:message.dataPlanId
dataPlanVersion:message.dataPlanVersion
];
Expand Down Expand Up @@ -455,7 +455,7 @@ - (void)testInstanceWithAdvertiserIdInSessionNoAttStatus {
sessionId:[NSNumber numberWithLong:session.sessionId]
messages:@[message]
sessionTimeout:DEFAULT_SESSION_TIMEOUT
uploadInterval:DEFAULT_DEBUG_UPLOAD_INTERVAL
uploadInterval:DEFAULT_UPLOAD_INTERVAL
dataPlanId:message.dataPlanId
dataPlanVersion:message.dataPlanVersion
];
Expand Down Expand Up @@ -537,7 +537,7 @@ - (void)testInstanceWithAdvertiserIdInSessionAuthorizedAttStatus {
sessionId:[NSNumber numberWithLong:session.sessionId]
messages:@[message]
sessionTimeout:DEFAULT_SESSION_TIMEOUT
uploadInterval:DEFAULT_DEBUG_UPLOAD_INTERVAL
uploadInterval:DEFAULT_UPLOAD_INTERVAL
dataPlanId:message.dataPlanId
dataPlanVersion:message.dataPlanVersion
];
Expand Down Expand Up @@ -622,7 +622,7 @@ - (void)testInstanceWithAdvertiserIdInSessionDeniedAttStatus {
sessionId:[NSNumber numberWithLong:session.sessionId]
messages:@[message]
sessionTimeout:DEFAULT_SESSION_TIMEOUT
uploadInterval:DEFAULT_DEBUG_UPLOAD_INTERVAL
uploadInterval:DEFAULT_UPLOAD_INTERVAL
dataPlanId:message.dataPlanId
dataPlanVersion:message.dataPlanVersion
];
Expand Down Expand Up @@ -703,7 +703,7 @@ - (MPUploadBuilder *)createTestUploadBuilder {
sessionId:[NSNumber numberWithLong:session.sessionId]
messages:@[message]
sessionTimeout:DEFAULT_SESSION_TIMEOUT
uploadInterval:DEFAULT_DEBUG_UPLOAD_INTERVAL
uploadInterval:DEFAULT_UPLOAD_INTERVAL
dataPlanId:message.dataPlanId
dataPlanVersion:message.dataPlanVersion
];
Expand Down
2 changes: 1 addition & 1 deletion UnitTests/MParticleTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ - (void)testUploadInterval {
MParticle *instance = [MParticle sharedInstance];
instance.backendController = [[MPBackendController alloc] init];

XCTAssertEqual(instance.uploadInterval, DEFAULT_DEBUG_UPLOAD_INTERVAL);
XCTAssertEqual(instance.uploadInterval, DEFAULT_UPLOAD_INTERVAL);
}

- (void)testSetUploadInterval {
Expand Down

0 comments on commit d1f6782

Please sign in to comment.