Skip to content

Commit

Permalink
Fix testNoDemandOnSubscriptionCrashes case
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle-Ye committed Dec 26, 2023
1 parent a82a00f commit 556de2a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Tests/OpenCombineTests/PublisherTests/MergeTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -851,16 +851,15 @@ final class MergeTests: XCTestCase {
.receive(subscription: thirdSubscription)
}

func testNoDemandOnSubscriptionCrashes() {
func testNoDemandOnSubscriptionNoCrashes() {
MergeTests.arities.forEach { arity in
let (_, merge) = getChildrenAndMergeForArity(arity)

let downstreamSubscriber = TrackingSubscriber(
receiveSubscription: { subscription in
self.assertCrashes { subscription.request(.none) }
subscription.request(.none)
}
)

merge.subscribe(downstreamSubscriber)
}
}
Expand Down

0 comments on commit 556de2a

Please sign in to comment.