Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure to deactivate log discaring while reenabling #639

Merged

Conversation

iamclement
Copy link
Contributor

No description provided.

@codecov-io
Copy link

codecov-io commented Jun 22, 2017

Codecov Report

Merging #639 into develop will increase coverage by 0.25%.
The diff coverage is 95.83%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #639      +/-   ##
===========================================
+ Coverage     92.9%   93.15%   +0.25%     
===========================================
  Files          207      207              
  Lines        14508    14563      +55     
  Branches       841      844       +3     
===========================================
+ Hits         13478    13566      +88     
+ Misses        1017      994      -23     
+ Partials        13        3      -10
Impacted Files Coverage Δ
.../MobileCenter/Internals/Channel/MSChannelDefault.m 83.33% <100%> (+0.7%) ⬆️
...leCenter/MobileCenterTests/MSChannelDefaultTests.m 96.88% <94.11%> (-0.33%) ⬇️
...eCenter/MobileCenterTests/MSIngestionSenderTests.m 96.81% <0%> (ø) ⬆️
...enter/MobileCenter/Internals/Sender/MSHttpSender.m 92.85% <0%> (+2.77%) ⬆️
...erDistribute/MobileCenterDistribute/MSDistribute.m 81.79% <0%> (+5.72%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c687c9b...82a56b9. Read the comment docs.

@@ -278,6 +278,10 @@ - (void)setEnabled:(BOOL)isEnabled andDeleteDataOnDisabled:(BOOL)deleteData {

// Prevent further logs from being persisted.
self.discardLogs = YES;
}else {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

space after }

id mockLog = [self getValidMockLog];
OCMReject([self.storageMock saveLog:[OCMArg any] withGroupId:[OCMArg any]]);

/**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the same comment style.

[self enqueueChannelEndJobExpectation];
}];

/**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the same comment style.

@iamclement iamclement merged commit 8d74963 into develop Jun 27, 2017
@iamclement iamclement deleted the fix/reenabling-deactivate-log-discarding-everytime branch June 27, 2017 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants