Skip to content

Commit bad53a3

Browse files
Set nil handler for waitForExpectationsWithTimeout method.
1 parent bd83ef6 commit bad53a3

File tree

1 file changed

+7
-32
lines changed

1 file changed

+7
-32
lines changed

Tests/swift-sdk-objc-tests/IterableAPITests.m

Lines changed: 7 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,7 @@ - (void)testUniversalDeeplinkRewrite {
9999
};
100100
[IterableAPI getAndTrackDeeplink:iterableLink callbackBlock:aBlock];
101101

102-
[self waitForExpectationsWithTimeout:IterableNetworkResponseExpectationTimeout handler:^(NSError *error) {
103-
if (error) {
104-
NSLog(@"Timeout Error: %@", error);
105-
}
106-
}];
102+
[self waitForExpectationsWithTimeout:IterableNetworkResponseExpectationTimeout handler:nil];
107103
}
108104

109105
- (void)testUniversalDeeplinkNoRewrite {
@@ -115,11 +111,7 @@ - (void)testUniversalDeeplinkNoRewrite {
115111
};
116112
[IterableAPI getAndTrackDeeplink:normalLink callbackBlock:uBlock];
117113

118-
[self waitForExpectationsWithTimeout:IterableNetworkResponseExpectationTimeout handler:^(NSError *error) {
119-
if (error) {
120-
NSLog(@"Timeout Error: %@", error);
121-
}
122-
}];
114+
[self waitForExpectationsWithTimeout:IterableNetworkResponseExpectationTimeout handler:nil];
123115
}
124116

125117
- (void)testHandleUniversalLinkRewrite {
@@ -139,8 +131,7 @@ - (void)testHandleUniversalLinkRewrite {
139131
NSURL *iterableLink = [NSURL URLWithString:iterableRewriteURL];
140132
[IterableAPI handleUniversalLink:iterableLink];
141133

142-
[self waitForExpectationsWithTimeout:IterableNetworkResponseExpectationTimeout handler:^(NSError *error) {
143-
}];
134+
[self waitForExpectationsWithTimeout:IterableNetworkResponseExpectationTimeout handler:nil];
144135
}
145136

146137
- (void)testDeeplinkAttributionInfo {
@@ -158,11 +149,7 @@ - (void)testDeeplinkAttributionInfo {
158149
};
159150
[IterableAPI getAndTrackDeeplink:normalLink callbackBlock:uBlock];
160151

161-
[self waitForExpectationsWithTimeout:IterableNetworkResponseExpectationTimeout handler:^(NSError *error) {
162-
if (error) {
163-
NSLog(@"Timeout Error: %@", error);
164-
}
165-
}];
152+
[self waitForExpectationsWithTimeout:IterableNetworkResponseExpectationTimeout handler:nil];
166153
}
167154

168155
- (void)testNoURLRedirect {
@@ -175,11 +162,7 @@ - (void)testNoURLRedirect {
175162
};
176163
[IterableAPI getAndTrackDeeplink:redirectLink callbackBlock:redirectBlock];
177164

178-
[self waitForExpectationsWithTimeout:IterableNetworkResponseExpectationTimeout handler:^(NSError *error) {
179-
if (error) {
180-
NSLog(@"Timeout Error: %@", error);
181-
}
182-
}];
165+
[self waitForExpectationsWithTimeout:IterableNetworkResponseExpectationTimeout handler:nil];
183166
}
184167

185168
- (void)testUniversalDeeplinkHttp {
@@ -192,11 +175,7 @@ - (void)testUniversalDeeplinkHttp {
192175
};
193176
[IterableAPI getAndTrackDeeplink:googleHttpLink callbackBlock:googleHttpBlock];
194177

195-
[self waitForExpectationsWithTimeout:IterableNetworkResponseExpectationTimeout handler:^(NSError *error) {
196-
if (error) {
197-
NSLog(@"Timeout Error: %@", error);
198-
}
199-
}];
178+
[self waitForExpectationsWithTimeout:IterableNetworkResponseExpectationTimeout handler:nil];
200179
}
201180

202181
- (void)testUniversalDeeplinkHttps {
@@ -210,11 +189,7 @@ - (void)testUniversalDeeplinkHttps {
210189
};
211190
[IterableAPI getAndTrackDeeplink:googleHttpsLink callbackBlock:googleHttpsBlock];
212191

213-
[self waitForExpectationsWithTimeout:IterableNetworkResponseExpectationTimeout handler:^(NSError *error) {
214-
if (error) {
215-
NSLog(@"Timeout Error: %@", error);
216-
}
217-
}];
192+
[self waitForExpectationsWithTimeout:IterableNetworkResponseExpectationTimeout handler:nil];
218193
}
219194

220195
- (void)testURLQueryParamRewrite {

0 commit comments

Comments
 (0)