Skip to content

Commit

Permalink
sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
Koji Murata committed Sep 9, 2019
1 parent 4ebbd6c commit 82cfc5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/Cache/DiskCacheTest.swift
Expand Up @@ -106,7 +106,7 @@ final class DiskCacheTest: XCTestCase {
XCTAssertEqual(cachedURLsBeforeClean.count, 3)

NotificationCenter.default.post(name: UIApplication.didEnterBackgroundNotification, object: nil)
sleep(1)
sleep(2)

let cachedURLsAfterClean = try! FileManager.default.contentsOfDirectory(
at: DiskCache.defaultCacheDirectory!,
Expand Down

0 comments on commit 82cfc5a

Please sign in to comment.