Skip to content

Commit aeab76a

Browse files
Add missing tests
1 parent ec7e952 commit aeab76a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Tests/RxSwiftTests/PrimitiveSequenceTest.swift

+10
Original file line numberDiff line numberDiff line change
@@ -1168,6 +1168,16 @@ extension PrimitiveSequenceTest {
11681168
Subscription(200, 210)
11691169
])
11701170
}
1171+
1172+
#if TRACE_RESOURCES
1173+
func testFirstReleasesResourcesOnComplete() {
1174+
_ = Observable<Int>.just(1).first().subscribe({ _ in })
1175+
}
1176+
1177+
func testFirstReleasesResourcesOnError1() {
1178+
_ = Observable<Int>.error(testError).first().subscribe({ _ in })
1179+
}
1180+
#endif
11711181
}
11721182

11731183
extension PrimitiveSequenceTest {

0 commit comments

Comments
 (0)