Skip to content

Commit

Permalink
Missed "Notifier" -> "Client" in OOM watchdog test
Browse files Browse the repository at this point in the history
  • Loading branch information
robinmacharg committed Mar 9, 2020
1 parent 3d33f5a commit e02455d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions iOS/BugsnagTests/BSGOutOfMemoryWatchdogTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
#import "BSG_KSSystemInfo.h"
#import "BugsnagConfiguration.h"
#import "Bugsnag.h"
#import "BugsnagNotifier.h"
#import "BugsnagClient.h"
#import "BugsnagTestConstants.h"

// Expose private identifiers for testing

@interface Bugsnag (Testing)
+ (BugsnagNotifier *)notifier;
+ (BugsnagClient *)client;
@end

@interface BugsnagNotifier (Testing)
@interface BugsnagClient (Testing)
@property (nonatomic, strong) BSGOutOfMemoryWatchdog *oomWatchdog;
@end

Expand Down Expand Up @@ -46,7 +46,7 @@ - (void)testNilPathDoesNotCreateWatchdog {
* Test that the generated OOM report values exist and are correct (where that can be tested)
*/
- (void)testOOMFieldsSetCorrectly {
NSMutableDictionary *cachedFileInfo = [[[Bugsnag notifier] oomWatchdog] cachedFileInfo];
NSMutableDictionary *cachedFileInfo = [[[Bugsnag client] oomWatchdog] cachedFileInfo];
XCTAssertNotNil([cachedFileInfo objectForKey:@"app"]);
XCTAssertNotNil([cachedFileInfo objectForKey:@"device"]);

Expand Down

0 comments on commit e02455d

Please sign in to comment.