Skip to content

Commit

Permalink
Fixing build
Browse files Browse the repository at this point in the history
  • Loading branch information
FabrizioBrancati committed Oct 30, 2018
1 parent 0fdea5a commit 4daa4e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Tests/QueuerTests/QueuerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ internal class QueuerTests: XCTestCase {

let concurrentOperation1 = ConcurrentOperation(name: "Test1") { operation in
operation.progress = 50
state = queue.state()
Thread.sleep(forTimeInterval: 2)
}
let concurrentOperation2 = ConcurrentOperation(name: "Test2") { _ in
Expand All @@ -345,6 +344,10 @@ internal class QueuerTests: XCTestCase {
testExpectation.fulfill()
}

DispatchQueue.global(qos: .background).asyncAfter(deadline: .now() + .seconds(1)) {
state = queue.state()
}

waitForExpectations(timeout: 5) { error in
XCTAssertNil(error)

Expand Down

0 comments on commit 4daa4e1

Please sign in to comment.