Skip to content

Commit

Permalink
Add high qos for delayed blocks in tests to avoid latency on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dstranz committed May 30, 2019
1 parent 3c42a67 commit 9493e33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/KingfisherTests/KingfisherTestHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func clearCaches(_ caches: [ImageCache]) {
}

func delay(_ time: Double, block: @escaping ()->()) {
DispatchQueue.main.asyncAfter(deadline: .now() + time) { block() }
DispatchQueue.main.asyncAfter(deadline: .now() + time, qos: .userInteractive) { block() }
}

extension Image {
Expand Down

0 comments on commit 9493e33

Please sign in to comment.