Procházet zdrojové kódy

Now clearing out the requests and timestamps between cache tests.

Christian Noon před 9 roky
rodič
revize
09c18a033c
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  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()
     }