Skip to content

Commit 51337c9

Browse files
author
Edward Smith
committed
Fixed key for unit tests.
1 parent c16554f commit 51337c9

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

Branch-TestBed/Branch-SDK-Tests/BNCServerInterface.Test.m

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ - (void)testParamAddForBranchKey {
6060
}
6161
];
6262

63-
[serverInterface getRequest:nil url:@"http://foo" key:@"key_foo" callback:NULL];
63+
[serverInterface getRequest:nil url:@"http://foo" key:@"key_live_foo" callback:NULL];
6464
[self waitForExpectationsWithTimeout:5.0 handler:nil];
6565
[OHHTTPStubs removeAllStubs];
6666
}
@@ -122,7 +122,7 @@ - (void)testGetRequestAsyncRetriesWhenAppropriate {
122122
}
123123
}];
124124

125-
[serverInterface getRequest:nil url:@"http://foo" key:@"key_foo" callback:NULL];
125+
[serverInterface getRequest:nil url:@"http://foo" key:@"key_live_foo" callback:NULL];
126126
[self waitForExpectationsWithTimeout:5.0 handler:nil];
127127
}
128128

@@ -160,7 +160,7 @@ - (void)testGetRequestAsyncRetriesWhenInappropriateResponse {
160160
}
161161
}];
162162

163-
[serverInterface getRequest:nil url:@"http://foo" key:@"key_foo" callback:NULL];
163+
[serverInterface getRequest:nil url:@"http://foo" key:@"key_live_foo" callback:NULL];
164164
[self waitForExpectationsWithTimeout:2.0 handler:nil];
165165
}
166166

@@ -198,7 +198,7 @@ - (void)testGetRequestAsyncRetriesWhenInappropriateRetryCount {
198198
}
199199
}];
200200

201-
[serverInterface getRequest:nil url:@"http://foo" key:@"key_foo" callback:NULL];
201+
[serverInterface getRequest:nil url:@"http://foo" key:@"key_live_foo" callback:NULL];
202202
[self waitForExpectationsWithTimeout:2.0 handler:nil];
203203
}
204204

@@ -254,7 +254,7 @@ - (void)testPostRequestAsyncRetriesWhenAppropriate {
254254
}
255255
}];
256256

257-
[serverInterface postRequest:nil url:@"http://foo" key:@"key_foo" callback:NULL];
257+
[serverInterface postRequest:nil url:@"http://foo" key:@"key_live_foo" callback:NULL];
258258
[self waitForExpectationsWithTimeout:5.0 handler:nil];
259259
}
260260

@@ -290,7 +290,7 @@ - (void)testPostRequestAsyncRetriesWhenInappropriateResponse {
290290

291291
}];
292292

293-
[serverInterface postRequest:nil url:@"http://foo" key:@"key_foo" callback:NULL];
293+
[serverInterface postRequest:nil url:@"http://foo" key:@"key_live_foo" callback:NULL];
294294
[self waitForExpectationsWithTimeout:1.0 handler:nil];
295295

296296
}
@@ -327,7 +327,7 @@ - (void)testPostRequestAsyncRetriesWhenInappropriateRetryCount {
327327

328328
}];
329329

330-
[serverInterface getRequest:nil url:@"http://foo" key:@"key_foo" callback:NULL];
330+
[serverInterface getRequest:nil url:@"http://foo" key:@"key_live_foo" callback:NULL];
331331
[self waitForExpectationsWithTimeout:1.0 handler:nil];
332332
}
333333

Branch-TestBed/Branch-SDK-Tests/BranchNetworkScenario.Test.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ - (void)testScenario2 {
9999
queue:[[BNCServerRequestQueue alloc] init]
100100
cache:[[BNCLinkCache alloc] init]
101101
preferenceHelper:[BNCPreferenceHelper preferenceHelper]
102-
key:@"key_foo"];
102+
key:@"key_live_foo"];
103103

104104
XCTestExpectation *scenario2Expectation1 =
105105
[self expectationWithDescription:@"Scenario2 Expectation1"];
@@ -166,7 +166,7 @@ - (void)testScenario3 {
166166
queue:[[BNCServerRequestQueue alloc] init]
167167
cache:[[BNCLinkCache alloc] init]
168168
preferenceHelper:[BNCPreferenceHelper preferenceHelper]
169-
key:@"key_foo"];
169+
key:@"key_live_foo"];
170170

171171
XCTestExpectation *scenario3Expectation1 =
172172
[self expectationWithDescription:@"Scenario3 Expectation1"];
@@ -216,7 +216,7 @@ - (void)testScenario4 {
216216
queue:[[BNCServerRequestQueue alloc] init]
217217
cache:[[BNCLinkCache alloc] init]
218218
preferenceHelper:[BNCPreferenceHelper preferenceHelper]
219-
key:@"key_foo"];
219+
key:@"key_live_foo"];
220220

221221
XCTestExpectation *scenario4Expectation1 =
222222
[self expectationWithDescription:@"Scenario4 Expectation1"];

Branch-TestBed/Branch-SDK-Tests/BranchSDKFunctionalityTests.m

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ - (void)test02GetShortURLAsync {
162162
queue:[[BNCServerRequestQueue alloc] init]
163163
cache:[[BNCLinkCache alloc] init]
164164
preferenceHelper:preferenceHelper
165-
key:@"key_foo"];
165+
key:@"key_live_foo"];
166166

167167
BNCServerResponse *fbLinkResponse = [[BNCServerResponse alloc] init];
168168
fbLinkResponse.statusCode = @200;
@@ -238,7 +238,7 @@ - (void)test03GetShortURLSync {
238238
queue:[[BNCServerRequestQueue alloc] init]
239239
cache:[[BNCLinkCache alloc] init]
240240
preferenceHelper:preferenceHelper
241-
key:@"key_foo"];
241+
key:@"key_live_foo"];
242242

243243
XCTestExpectation *getShortURLExpectation = [self expectationWithDescription:@"Test getShortURL Sync"];
244244
[branch initSessionWithLaunchOptions:@{} andRegisterDeepLinkHandler:^(NSDictionary *params, NSError *error) {
@@ -292,7 +292,7 @@ - (void)test04GetRewardsChanged {
292292
queue:[[BNCServerRequestQueue alloc] init]
293293
cache:[[BNCLinkCache alloc] init]
294294
preferenceHelper:preferenceHelper
295-
key:@"key_foo"];
295+
key:@"key_live_foo"];
296296

297297
[preferenceHelper setCreditCount:NSIntegerMax forBucket:@"default"];
298298

@@ -330,7 +330,7 @@ - (void)test05GetRewardsUnchanged {
330330
queue:[[BNCServerRequestQueue alloc] init]
331331
cache:[[BNCLinkCache alloc] init]
332332
preferenceHelper:preferenceHelper
333-
key:@"key_foo"];
333+
key:@"key_live_foo"];
334334

335335
[preferenceHelper setCreditCount:1 forBucket:@"default"];
336336

@@ -374,7 +374,7 @@ - (void)test12GetCreditHistory {
374374
queue:[[BNCServerRequestQueue alloc] init]
375375
cache:[[BNCLinkCache alloc] init]
376376
preferenceHelper:preferenceHelper
377-
key:@"key_foo"];
377+
key:@"key_live_foo"];
378378

379379
[preferenceHelper setCreditCount:1 forBucket:@"default"];
380380

@@ -435,7 +435,7 @@ - (void)test13GetShortURLAfterLogout {
435435
queue:[[BNCServerRequestQueue alloc] init]
436436
cache:[[BNCLinkCache alloc] init]
437437
preferenceHelper:preferenceHelper
438-
key:@"key_foo"];
438+
key:@"key_live_foo"];
439439

440440
// Init session
441441

0 commit comments

Comments
 (0)