Skip to content

Commit

Permalink
Add no service versions to the core fetcher cancel tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasvl committed Nov 11, 2024
1 parent 7d3ea8f commit 916fda1
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions UnitTests/GTMSessionFetcherFetchingTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -1563,39 +1563,84 @@ - (void)testDelayedCancelFetchWithCallback {
[self internalCancelFetchWithCallback:1];
}

- (void)testDelayedCancelFetchWithCallback_WithoutFetcherService {
_fetcherService = nil;
[self internalCancelFetchWithCallback:1];
}

- (void)testImmediateCancelFetchWithCallback {
[self internalCancelFetchWithCallback:0];
}

- (void)testImmediateCancelFetchWithCallback_WithoutFetcherService {
_fetcherService = nil;
[self internalCancelFetchWithCallback:0];
}

- (void)testDelayedSyncAuthCancelFetchWithCallback {
[self internalCancelFetchWithCallback:1 authorizer:[TestAuthorizer syncAuthorizer]];
}

- (void)testDelayedSyncAuthCancelFetchWithCallback_WithoutFetcherService {
_fetcherService = nil;
[self internalCancelFetchWithCallback:1 authorizer:[TestAuthorizer syncAuthorizer]];
}

- (void)testImmediateSyncAuthCancelFetchWithCallback {
XCTSkip(@"Has failed on CI, but not locally, needs investigation.");
[self internalCancelFetchWithCallback:0 authorizer:[TestAuthorizer syncAuthorizer]];
}

- (void)testImmediateSyncAuthCancelFetchWithCallback_WithoutFetcherService {
_fetcherService = nil;
XCTSkip(@"Has failed on CI, but not locally, needs investigation.");
[self internalCancelFetchWithCallback:0 authorizer:[TestAuthorizer syncAuthorizer]];
}

- (void)testDelayedAsyncAuthCancelFetchWithCallback {
XCTSkip(@"Currently fails, needs fixing.");
[self internalCancelFetchWithCallback:1 authorizer:[TestAuthorizer asyncAuthorizer]];
}

- (void)testDelayedAsyncAuthCancelFetchWithCallback_WithoutFetcherService {
_fetcherService = nil;
XCTSkip(@"Currently fails, needs fixing.");
[self internalCancelFetchWithCallback:1 authorizer:[TestAuthorizer asyncAuthorizer]];
}

- (void)testImmediateAsyncAuthCancelFetchWithCallback {
XCTSkip(@"Currently fails, needs fixing.");
[self internalCancelFetchWithCallback:0 authorizer:[TestAuthorizer asyncAuthorizer]];
}

- (void)testImmediateAsyncAuthCancelFetchWithCallback_WithoutFetcherService {
_fetcherService = nil;
XCTSkip(@"Currently fails, needs fixing.");
[self internalCancelFetchWithCallback:0 authorizer:[TestAuthorizer asyncAuthorizer]];
}

- (void)testDelayedAsyncDelayedAuthCancelFetchWithCallback {
XCTSkip(@"Currently fails, needs fixing.");
[self internalCancelFetchWithCallback:1 authorizer:[TestAuthorizer asyncAuthorizerDelayed:2]];
}

- (void)testDelayedAsyncDelayedAuthCancelFetchWithCallback_WithoutFetcherService {
_fetcherService = nil;
XCTSkip(@"Currently fails, needs fixing.");
[self internalCancelFetchWithCallback:1 authorizer:[TestAuthorizer asyncAuthorizerDelayed:2]];
}

- (void)testImmediateAsyncDelayedAuthCancelFetchWithCallback {
XCTSkip(@"Currently fails, needs fixing.");
[self internalCancelFetchWithCallback:0 authorizer:[TestAuthorizer asyncAuthorizerDelayed:1]];
}

- (void)testImmediateAsyncDelayedAuthCancelFetchWithCallback_WithoutFetcherService {
_fetcherService = nil;
XCTSkip(@"Currently fails, needs fixing.");
[self internalCancelFetchWithCallback:0 authorizer:[TestAuthorizer asyncAuthorizerDelayed:1]];
}

- (void)internalCancelFetchWithCallback:(unsigned int)sleepTime {
[self internalCancelFetchWithCallback:sleepTime authorizer:nil];
}
Expand Down

0 comments on commit 916fda1

Please sign in to comment.