{"action":"created","issue":{"url":"https://api.github.com/repos/realm/SwiftCov/issues/39","labels_url":"https://api.github.com/repos/realm/SwiftCov/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/realm/SwiftCov/issues/39/comments","events_url":"https://api.github.com/repos/realm/SwiftCov/issues/39/events","html_url":"https://github.com/realm/SwiftCov/issues/39","id":84342195,"number":39,"title":"Async networking expectation output error or sometimes never complete when running SwiftCov","user":{"login":"sync","id":21725,"avatar_url":"https://avatars.githubusercontent.com/u/21725?v=3","gravatar_id":"","url":"https://api.github.com/users/sync","html_url":"https://github.com/sync","followers_url":"https://api.github.com/users/sync/followers","following_url":"https://api.github.com/users/sync/following{/other_user}","gists_url":"https://api.github.com/users/sync/gists{/gist_id}","starred_url":"https://api.github.com/users/sync/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sync/subscriptions","organizations_url":"https://api.github.com/users/sync/orgs","repos_url":"https://api.github.com/users/sync/repos","events_url":"https://api.github.com/users/sync/events{/privacy}","received_events_url":"https://api.github.com/users/sync/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-06-03T03:51:05Z","updated_at":"2015-06-04T06:45:00Z","closed_at":null,"body":"this:\r\n```\r\nfunc testAsyncNetworking() {\r\n        let e = self.expectationWithDescription(\"complete expectation\")\r\n        \r\n        let session = NSURLSession.sharedSession()\r\n        let task = session.dataTaskWithURL(NSURL(string: \"http://www.google.com\")!, completionHandler: { (data, response, error) -> Void in\r\n             e.fulfill()\r\n        })\r\n        task.resume()\r\n        \r\n       \r\n        self.waitForExpectationsWithTimeout(2, handler: nil)\r\n    }\r\n```\r\n\r\nerror:\r\n```\r\nTest Case '-[ExampleFrameworkiOSTests.ExampleFrameworkTests testAsyncNetworking]' started.\r\n2015-06-03 13:45:25.021 xctest[23736:1435239] ***storageTaskManagerExistsWithIdentifier:withIdentifier failed: Error Domain=NSCocoaErrorDomain Code=4099 \"The operation couldn’t be completed. (Cocoa error 4099.)\" (The connection to service named com.apple.nsurlstorage-cache was invalidated.) UserInfo=0x7fd9fa667b40 {NSDebugDescription=The connection to service named com.apple.nsurlstorage-cache was invalidated.}; {\r\n    NSDebugDescription = \"The connection to service named com.apple.nsurlstorage-cache was invalidated.\";\r\n}\r\n2015-06-03 13:45:25.022 xctest[23736:1435239] ***cachedResponseForRequest:key:handler failed: Error Domain=NSCocoaErrorDomain Code=4099 \"The operation couldn’t be completed. (Cocoa error 4099.)\" (The connection to service named com.apple.nsurlstorage-cache was invalidated.) UserInfo=0x7fd9fa706710 {NSDebugDescription=The connection to service named com.apple.nsurlstorage-cache was invalidated.}; {\r\n    NSDebugDescription = \"The connection to service named com.apple.nsurlstorage-cache was invalidated.\";\r\n}\r\n2015-06-03 13:45:25.064 xctest[23736:1435243] ***cachedResponseForRequest:key:handler failed: Error Domain=NSCocoaErrorDomain Code=4099 \"The operation couldn’t be completed. (Cocoa error 4099.)\" (The connection to service named com.apple.nsurlstorage-cache was invalidated.) UserInfo=0x7fd9fa7072a0 {NSDebugDescription=The connection to service named com.apple.nsurlstorage-cache was invalidated.}; {\r\n    NSDebugDescription = \"The connection to service named com.apple.nsurlstorage-cache was invalidated.\";\r\n}\r\n```\r\n\r\nsee https://github.com/sync/SwiftCov/tree/bug/async-networking-crash"},"comment":{"url":"https://api.github.com/repos/realm/SwiftCov/issues/comments/108751610","html_url":"https://github.com/realm/SwiftCov/issues/39#issuecomment-108751610","issue_url":"https://api.github.com/repos/realm/SwiftCov/issues/39","id":108751610,"user":{"login":"sonsongithub","id":33768,"avatar_url":"https://avatars.githubusercontent.com/u/33768?v=3","gravatar_id":"","url":"https://api.github.com/users/sonsongithub","html_url":"https://github.com/sonsongithub","followers_url":"https://api.github.com/users/sonsongithub/followers","following_url":"https://api.github.com/users/sonsongithub/following{/other_user}","gists_url":"https://api.github.com/users/sonsongithub/gists{/gist_id}","starred_url":"https://api.github.com/users/sonsongithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonsongithub/subscriptions","organizations_url":"https://api.github.com/users/sonsongithub/orgs","repos_url":"https://api.github.com/users/sonsongithub/repos","events_url":"https://api.github.com/users/sonsongithub/events{/privacy}","received_events_url":"https://api.github.com/users/sonsongithub/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T06:45:00Z","updated_at":"2015-06-04T06:45:00Z","body":"I got it."}}