File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -81,11 +81,11 @@ - (NSUInteger)modulesCount {
81
81
// /--------------------------------------
82
82
83
83
- (void )parseDidInitializeWithApplicationId : (NSString *)applicationId clientKey : (NSString *)clientKey {
84
- [ self enumerateModulesWithBlock: ^( id <ParseModule> module, BOOL *stop, BOOL *remove) {
85
- dispatch_async ( dispatch_get_main_queue (), ^ {
84
+ dispatch_async ( dispatch_get_main_queue (), ^ {
85
+ [ self enumerateModulesWithBlock: ^( id <ParseModule> module, BOOL *stop, BOOL *remove) {
86
86
[module parseDidInitializeWithApplicationId: applicationId clientKey: clientKey];
87
- }) ;
88
- }] ;
87
+ }] ;
88
+ }) ;
89
89
}
90
90
91
91
// /--------------------------------------
Original file line number Diff line number Diff line change @@ -53,6 +53,10 @@ - (void)testWeakModuleReference {
53
53
}
54
54
55
55
[collection parseDidInitializeWithApplicationId: nil clientKey: nil ];
56
+
57
+ // Run a single runloop tick to trigger the parse initializaiton.
58
+ [[NSRunLoop currentRunLoop ] runUntilDate: [NSDate distantPast ]];
59
+
56
60
XCTAssertEqual ([collection modulesCount ], 0 );
57
61
}
58
62
You can’t perform that action at this time.
0 commit comments