Explorar o código

Now clearing out the requests and timestamps between cache tests.

Christian Noon %!s(int64=9) %!d(string=hai) anos
pai
achega
09c18a033c
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      Tests/CacheTests.swift

+ 3 - 0
Tests/CacheTests.swift

@@ -112,6 +112,9 @@ class CacheTestCase: BaseTestCase {
     override func tearDown() {
         super.tearDown()
 
+        requests.removeAll()
+        timestamps.removeAll()
+
         URLCache.removeAllCachedResponses()
     }