@@ -99,11 +99,7 @@ - (void)testUniversalDeeplinkRewrite {
99
99
};
100
100
[IterableAPI getAndTrackDeeplink: iterableLink callbackBlock: aBlock];
101
101
102
- [self waitForExpectationsWithTimeout: IterableNetworkResponseExpectationTimeout handler: ^(NSError *error) {
103
- if (error) {
104
- NSLog (@" Timeout Error: %@ " , error);
105
- }
106
- }];
102
+ [self waitForExpectationsWithTimeout: IterableNetworkResponseExpectationTimeout handler: nil ];
107
103
}
108
104
109
105
- (void )testUniversalDeeplinkNoRewrite {
@@ -115,11 +111,7 @@ - (void)testUniversalDeeplinkNoRewrite {
115
111
};
116
112
[IterableAPI getAndTrackDeeplink: normalLink callbackBlock: uBlock];
117
113
118
- [self waitForExpectationsWithTimeout: IterableNetworkResponseExpectationTimeout handler: ^(NSError *error) {
119
- if (error) {
120
- NSLog (@" Timeout Error: %@ " , error);
121
- }
122
- }];
114
+ [self waitForExpectationsWithTimeout: IterableNetworkResponseExpectationTimeout handler: nil ];
123
115
}
124
116
125
117
- (void )testHandleUniversalLinkRewrite {
@@ -139,8 +131,7 @@ - (void)testHandleUniversalLinkRewrite {
139
131
NSURL *iterableLink = [NSURL URLWithString: iterableRewriteURL];
140
132
[IterableAPI handleUniversalLink: iterableLink];
141
133
142
- [self waitForExpectationsWithTimeout: IterableNetworkResponseExpectationTimeout handler: ^(NSError *error) {
143
- }];
134
+ [self waitForExpectationsWithTimeout: IterableNetworkResponseExpectationTimeout handler: nil ];
144
135
}
145
136
146
137
- (void )testDeeplinkAttributionInfo {
@@ -158,11 +149,7 @@ - (void)testDeeplinkAttributionInfo {
158
149
};
159
150
[IterableAPI getAndTrackDeeplink: normalLink callbackBlock: uBlock];
160
151
161
- [self waitForExpectationsWithTimeout: IterableNetworkResponseExpectationTimeout handler: ^(NSError *error) {
162
- if (error) {
163
- NSLog (@" Timeout Error: %@ " , error);
164
- }
165
- }];
152
+ [self waitForExpectationsWithTimeout: IterableNetworkResponseExpectationTimeout handler: nil ];
166
153
}
167
154
168
155
- (void )testNoURLRedirect {
@@ -175,11 +162,7 @@ - (void)testNoURLRedirect {
175
162
};
176
163
[IterableAPI getAndTrackDeeplink: redirectLink callbackBlock: redirectBlock];
177
164
178
- [self waitForExpectationsWithTimeout: IterableNetworkResponseExpectationTimeout handler: ^(NSError *error) {
179
- if (error) {
180
- NSLog (@" Timeout Error: %@ " , error);
181
- }
182
- }];
165
+ [self waitForExpectationsWithTimeout: IterableNetworkResponseExpectationTimeout handler: nil ];
183
166
}
184
167
185
168
- (void )testUniversalDeeplinkHttp {
@@ -192,11 +175,7 @@ - (void)testUniversalDeeplinkHttp {
192
175
};
193
176
[IterableAPI getAndTrackDeeplink: googleHttpLink callbackBlock: googleHttpBlock];
194
177
195
- [self waitForExpectationsWithTimeout: IterableNetworkResponseExpectationTimeout handler: ^(NSError *error) {
196
- if (error) {
197
- NSLog (@" Timeout Error: %@ " , error);
198
- }
199
- }];
178
+ [self waitForExpectationsWithTimeout: IterableNetworkResponseExpectationTimeout handler: nil ];
200
179
}
201
180
202
181
- (void )testUniversalDeeplinkHttps {
@@ -210,11 +189,7 @@ - (void)testUniversalDeeplinkHttps {
210
189
};
211
190
[IterableAPI getAndTrackDeeplink: googleHttpsLink callbackBlock: googleHttpsBlock];
212
191
213
- [self waitForExpectationsWithTimeout: IterableNetworkResponseExpectationTimeout handler: ^(NSError *error) {
214
- if (error) {
215
- NSLog (@" Timeout Error: %@ " , error);
216
- }
217
- }];
192
+ [self waitForExpectationsWithTimeout: IterableNetworkResponseExpectationTimeout handler: nil ];
218
193
}
219
194
220
195
- (void )testURLQueryParamRewrite {
0 commit comments