diff --git a/Source/UnitTests/GTMReadMonitorInputStreamTest.m b/Source/UnitTests/GTMReadMonitorInputStreamTest.m index 8e12b084..fd7becc6 100644 --- a/Source/UnitTests/GTMReadMonitorInputStreamTest.m +++ b/Source/UnitTests/GTMReadMonitorInputStreamTest.m @@ -30,10 +30,14 @@ @implementation GTMReadMonitorInputStreamTest - (void)setUp { _monitoredData = [[NSMutableData alloc] init]; + + [super setUp]; } - (void)tearDown { _monitoredData = nil; + + [super tearDown]; } - (void)testGTMReadMonitorInputStream { diff --git a/Source/UnitTests/GTMSessionFetcherChunkedUploadTest.m b/Source/UnitTests/GTMSessionFetcherChunkedUploadTest.m index 18d01d29..af5c2b63 100644 --- a/Source/UnitTests/GTMSessionFetcherChunkedUploadTest.m +++ b/Source/UnitTests/GTMSessionFetcherChunkedUploadTest.m @@ -33,6 +33,12 @@ - (void)setUp { [super setUp]; } +- (void)tearDown { + _service = nil; + + [super tearDown]; +} + #pragma mark - Chunked Upload Fetch Tests - (void)testChunkedUploadTestBlock { diff --git a/Source/UnitTests/GTMSessionFetcherFetchingTest.m b/Source/UnitTests/GTMSessionFetcherFetchingTest.m index 63b00951..18f6cab8 100644 --- a/Source/UnitTests/GTMSessionFetcherFetchingTest.m +++ b/Source/UnitTests/GTMSessionFetcherFetchingTest.m @@ -35,10 +35,14 @@ @implementation GTMSessionFetcherBaseTest + (void)setUp { SubstituteUIApplication *app = [[SubstituteUIApplication alloc] init]; [GTMSessionFetcher setSubstituteUIApplication:app]; + + [super setUp]; } + (void)tearDown { [GTMSessionFetcher setSubstituteUIApplication:nil]; + + [super tearDown]; } #endif // GTM_BACKGROUND_TASK_FETCHING @@ -59,6 +63,8 @@ - (void)setUp { _isServerRunning = (_testServer != nil); XCTAssertTrue(_isServerRunning, @">>> http test server failed to launch; skipping fetcher tests\n"); + + [super setUp]; } - (void)tearDown { @@ -69,6 +75,8 @@ - (void)tearDown { _fetcherService = nil; [[GTMSessionFetcher staticCookieStorage] removeAllCookies]; + + [super tearDown]; } #pragma mark - diff --git a/Source/UnitTests/GTMSessionFetcherServiceTest.m b/Source/UnitTests/GTMSessionFetcherServiceTest.m index 60e79c6a..511daf0c 100644 --- a/Source/UnitTests/GTMSessionFetcherServiceTest.m +++ b/Source/UnitTests/GTMSessionFetcherServiceTest.m @@ -52,11 +52,15 @@ - (void)setUp { XCTAssertTrue(_isServerRunning, @">>> http test server failed to launch; skipping service tests\n"); + + [super setUp]; } - (void)tearDown { _testServer = nil; _isServerRunning = NO; + + [super tearDown]; } - (void)testFetcherService {