@@ -62,7 +62,7 @@ class MockRealtime: RCNConfigRealtime, @unchecked Sendable {
6262 }
6363}
6464
65- // MARK: - AsyncStreamTests
65+ // MARK: - AsyncSequenceTests
6666
6767@available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
6868class AsyncSequenceTests : XCTestCase {
@@ -99,8 +99,8 @@ class AsyncSequenceTests: XCTestCase {
9999 try super. tearDownWithError ( )
100100 }
101101
102- func testStreamYieldsUpdate_whenUpdateIsSent ( ) async throws {
103- let expectation = self . expectation ( description: " Stream should yield an update." )
102+ func testSequenceYieldsUpdate_whenUpdateIsSent ( ) async throws {
103+ let expectation = self . expectation ( description: " Sequence should yield an update." )
104104 let keysToUpdate = [ " foo " , " bar " ]
105105
106106 let listenerAttachedExpectation = self . expectation ( description: " Listener should be attached. " )
@@ -123,8 +123,8 @@ class AsyncSequenceTests: XCTestCase {
123123 listeningTask. cancel ( )
124124 }
125125
126- func testStreamFinishes_whenErrorIsSent ( ) async throws {
127- let expectation = self . expectation ( description: " Stream should throw an error." )
126+ func testSequenceFinishes_whenErrorIsSent ( ) async throws {
127+ let expectation = self . expectation ( description: " Sequence should throw an error." )
128128 let testError = TestError ( )
129129
130130 let listenerAttachedExpectation = self . expectation ( description: " Listener should be attached. " )
@@ -150,7 +150,7 @@ class AsyncSequenceTests: XCTestCase {
150150 listeningTask. cancel ( )
151151 }
152152
153- func testStreamCancellation_callsRemoveOnListener ( ) async throws {
153+ func testSequenceCancellation_callsRemoveOnListener ( ) async throws {
154154 let listenerAttachedExpectation = expectation ( description: " Listener should be attached. " )
155155 mockRealtime. listenerAttachedExpectation = listenerAttachedExpectation
156156
@@ -176,8 +176,8 @@ class AsyncSequenceTests: XCTestCase {
176176 XCTAssertTrue ( mockRealtime. mockRegistration. wasRemoveCalled)
177177 }
178178
179- func testStreamFinishesGracefully_whenListenerSendsNil ( ) async throws {
180- let expectation = self . expectation ( description: " Stream should finish without error." )
179+ func testSequenceFinishesGracefully_whenListenerSendsNil ( ) async throws {
180+ let expectation = self . expectation ( description: " Sequence should finish without error." )
181181
182182 let listenerAttachedExpectation = self . expectation ( description: " Listener should be attached. " )
183183 mockRealtime. listenerAttachedExpectation = listenerAttachedExpectation
@@ -203,8 +203,8 @@ class AsyncSequenceTests: XCTestCase {
203203 listeningTask. cancel ( )
204204 }
205205
206- func testStreamYieldsMultipleUpdates_whenMultipleUpdatesAreSent ( ) async throws {
207- let expectation = self . expectation ( description: " Stream should receive two updates." )
206+ func testSequenceYieldsMultipleUpdates_whenMultipleUpdatesAreSent ( ) async throws {
207+ let expectation = self . expectation ( description: " Sequence should receive two updates." )
208208 expectation. expectedFulfillmentCount = 2
209209
210210 let updatesToSend = [
0 commit comments