Skip to content

Fix OperationQueue counters #2777

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 27, 2020

Conversation

lxbndr
Copy link
Contributor

@lxbndr lxbndr commented Apr 26, 2020

This fixes typos in code responsible for counting operations in queue.

CC @compnerd

This fixes typos in code responsible for counting operations in queue.
@spevans
Copy link
Contributor

spevans commented Apr 27, 2020

@swift-ci test linux

@@ -13,7 +13,7 @@ class TestOperationQueue : XCTestCase {
static var allTests: [(String, (TestOperationQueue) -> () throws -> Void)] {
return [
("test_OperationPriorities", test_OperationPriorities),
/* ⚠️ */ ("test_OperationCount", testExpectedToFail(test_OperationCount, "OperationQueue can't count to more than 1")),
("test_OperationCount", test_OperationCount),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be nice to have a test that ensures that the operations returned are also correct. I don't think that we need to hold up this particular patch for that, but would be a good addition to the test suite in a follow up change.

@compnerd compnerd merged commit a588630 into swiftlang:master Apr 27, 2020
@lxbndr lxbndr deleted the operation-queue-counters branch April 28, 2020 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants