Skip to content

Commit b419e0b

Browse files
committed
Remove unused test
1 parent 698a341 commit b419e0b

File tree

1 file changed

+0
-43
lines changed

1 file changed

+0
-43
lines changed

Tests/JetpackTests/JetpackTests.swift

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -839,49 +839,6 @@ class JetpackTests: XCTestCase {
839839
then()
840840
}
841841

842-
func testReactive() {
843-
844-
let expect = expectation(description: "result")
845-
846-
class ViewModel {
847-
@Reactive(ui: true) public private(set) var counter = 0
848-
@Subject<Void>(ui: true) public private(set) var didFinish
849-
850-
func touch() {
851-
_counter.mutableProperty.update(0)
852-
_didFinish.publishSubject.update()
853-
}
854-
}
855-
856-
let viewModel = ViewModel()
857-
858-
_ = viewModel.$didFinish.subscribe { _ in
859-
XCTAssertTrue(Thread.isMainThread)
860-
}
861-
862-
_ = viewModel.$counter.subscribe { _ in
863-
XCTAssertTrue(Thread.isMainThread)
864-
}
865-
866-
let numberOfQueues = 20
867-
let numberOfIterations = 10
868-
869-
expect.expectedFulfillmentCount = numberOfQueues
870-
871-
for _ in 0..<numberOfQueues {
872-
DispatchQueue.global(qos: .utility).async {
873-
for _ in 0..<numberOfIterations {
874-
viewModel.touch()
875-
}
876-
expect.fulfill()
877-
}
878-
}
879-
880-
self.waitForExpectations(timeout: 3) { error in
881-
XCTAssertNil(error)
882-
}
883-
}
884-
885842
func testDeadlock() {
886843
let p = MutableProperty(0)
887844

0 commit comments

Comments
 (0)