in FBSDKGamingServicesKit/FBSDKGamingServicesKitTests/Internal/TournamentUpdaterTest.swift [74:90]
func testUpdateWithoutGamingDomainAuthToken() throws {
var completionWasInvoked = false
AuthenticationToken.current = SampleAuthenticationToken.validToken(withGraphDomain: "notGaming")
updater.update(tournament: tournament, score: score) { result in
switch result {
case let .failure(error):
guard case .invalidAuthToken = error else {
return XCTFail("Should fail with invalid auth token error but instead failed with: \(error)")
}
case .success:
XCTFail("Should not succeed")
}
completionWasInvoked = true
}
XCTAssert(completionWasInvoked)
}