File tree Expand file tree Collapse file tree
Tests/PowerSyncTests/Utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,12 +42,8 @@ struct MergeItemSequenceTest {
4242
4343 @Test func reportsErrors( ) async throws {
4444 let items = generateMerged ( ) . makeAsyncIterator ( )
45- await #expect( throws: PowerSyncError . self) {
46- async let firstItem = items. next ( )
47- await source. fail ( PowerSyncError . operationFailed ( message: " error for test " ) )
48-
49- try await firstItem
50- }
45+ await source. fail ( PowerSyncError . operationFailed ( message: " error for test " ) )
46+ await #expect( throws: PowerSyncError . self) { try await items. next ( ) }
5147 }
5248
5349 @Test func forwardsClose( ) async throws {
@@ -58,7 +54,7 @@ struct MergeItemSequenceTest {
5854 try #require( try await items. next ( ) == nil )
5955 try await items. pollTask. value
6056 }
61-
57+
6258 @Test func closesOnDrop( ) async throws {
6359 let task : Task < Void , any Error >
6460 do {
You can’t perform that action at this time.
0 commit comments