File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
OptimizelySDKShared/OptimizelySDKSharedTests Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ - (void)testInitializeClientAsync {
122
122
XCTAssertEqual (manager.datafile , kDefaultDatafile );
123
123
124
124
// stub network call
125
- [OHHTTPStubs stubRequestsPassingTest: ^BOOL (NSURLRequest *request) {
125
+ id <OHHTTPStubsDescriptor> stub = [OHHTTPStubs stubRequestsPassingTest: ^BOOL (NSURLRequest *request) {
126
126
return [request.URL.host isEqualToString: @" cdn.optimizely.com" ];
127
127
} withStubResponse: ^OHHTTPStubsResponse*(NSURLRequest *request) {
128
128
// Stub it with our "wsresponse.json" stub file (which is in same bundle as self)
@@ -150,6 +150,9 @@ - (void)testInitializeClientAsync {
150
150
// wait for async start to finish
151
151
[self waitForExpectationsWithTimeout: 2 handler: nil ];
152
152
XCTAssertEqual (optimizelyClient, manager.getOptimizely );
153
+
154
+ // clean up stub
155
+ [OHHTTPStubs removeStub: stub];
153
156
}
154
157
155
158
- (void )checkConfigIsUsingDefaultDatafile : (OPTLYProjectConfig *)config {
You can’t perform that action at this time.
0 commit comments