Browse Source

Now clearing out the requests and timestamps between cache tests.

Christian Noon 9 năm trước cách đây
mục cha
commit
09c18a033c
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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()
     }