             XCTFail("Retrieving data failed: \(error)")
         }
 
-        waitForExpectationsWithTimeout(0.05, handler: nil)
+        waitForExpectationsWithTimeout(expectationTimeout, handler: nil)
     }
 }
 

            XCTFail("Caching data failed: \(error)")
        }

        waitForExpectationsWithTimeout(0.05, handler: nil)
    }

    func testRetrievingDataCallsCompletionHandlerWithSuccessAndData() {

    private static let diskCacheIdentifier = "TestDiskCache"
    private let diskCache = DiskCache(identifier: DiskCacheTests.diskCacheIdentifier)
    private let fileManager = NSFileManager()
    private let expectationTimeout = 0.05
    
    override func setUp() {
        super.setUp()
