Skip to content

Commit c600cfa

Browse files
committed
Comment added
1 parent 72f72a3 commit c600cfa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

TestFoundation/TestNSOperationQueue.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ class TestNSOperationQueue : XCTestCase {
108108
func test_MainQueueGetter() {
109109
XCTAssertTrue(OperationQueue.main === OperationQueue.main)
110110

111+
/*
112+
This call is only to check if OperationQueue.main returns a living instance.
113+
There used to be a bug where subsequent OperationQueue.main call would return a "dangling pointer".
114+
*/
111115
XCTAssertFalse(OperationQueue.main.isSuspended)
112116
}
113117
}

0 commit comments

Comments
 (0)