瀏覽代碼

Now clearing out the requests and timestamps between cache tests.

Christian Noon 9 年之前
父節點
當前提交
09c18a033c
共有 1 個文件被更改,包括 3 次插入0 次删除
  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()
     }