@@ -30,14 +30,6 @@ - (void) testNotificationsSuccess {
3030
3131 self.expectFailure = NO ;
3232 self.notificationOrder = 0 ;
33- self.branchWillOpenURLExpectation =
34- [self expectationWithDescription: @" branchWillOpenURLExpectation" ];
35- self.branchWillOpenURLNotificationExpectation =
36- [self expectationWithDescription: @" branchWillOpenURLNotificationExpectation" ];
37- self.branchDidOpenURLExpectation =
38- [self expectationWithDescription: @" branchDidOpenURLExpectation" ];
39- self.branchDidOpenURLNotificationExpectation =
40- [self expectationWithDescription: @" branchDidOpenURLNotificationExpectation" ];
4133
4234 [[NSNotificationCenter defaultCenter ]
4335 addObserver: self
@@ -125,14 +117,6 @@ - (void) testNotificationsFailure {
125117
126118 self.expectFailure = YES ;
127119 self.notificationOrder = 0 ;
128- self.branchWillOpenURLExpectation =
129- [self expectationWithDescription: @" branchWillOpenURLExpectation" ];
130- self.branchWillOpenURLNotificationExpectation =
131- [self expectationWithDescription: @" branchWillOpenURLNotificationExpectation" ];
132- self.branchDidOpenURLExpectation =
133- [self expectationWithDescription: @" branchDidOpenURLExpectation" ];
134- self.branchDidOpenURLNotificationExpectation =
135- [self expectationWithDescription: @" branchDidOpenURLNotificationExpectation" ];
136120
137121 [[NSNotificationCenter defaultCenter ]
138122 addObserver: self
@@ -329,4 +313,15 @@ - (void) branchDidStartSessionNotification:(NSNotification*)notification {
329313 [self .branchDidOpenURLNotificationExpectation fulfill ];
330314}
331315
316+ - (void )setUp {
317+ self.branchWillOpenURLExpectation =
318+ [self expectationWithDescription: @" branchWillOpenURLExpectation" ];
319+ self.branchWillOpenURLNotificationExpectation =
320+ [self expectationWithDescription: @" branchWillOpenURLNotificationExpectation" ];
321+ self.branchDidOpenURLExpectation =
322+ [self expectationWithDescription: @" branchDidOpenURLExpectation" ];
323+ self.branchDidOpenURLNotificationExpectation =
324+ [self expectationWithDescription: @" branchDidOpenURLNotificationExpectation" ];
325+ }
326+
332327@end
0 commit comments