Skip to content

Commit e8191d1

Browse files
committed
Codacy
1 parent a3411e8 commit e8191d1

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
strategy:
3333
matrix:
3434
environment: [iOS]
35-
timeout-minutes: 22
35+
timeout-minutes: 24
3636
steps:
3737
- name: Checkout repository
3838
uses: actions/checkout@v4

Sources/Entities/ChannelGroup+AsyncAwait.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ public extension ChannelGroup {
3737
page: page
3838
) {
3939
switch $0 {
40-
case let .success(value):
41-
continuation.resume(returning: value)
42-
case let .failure(error):
43-
continuation.resume(throwing: error)
40+
case let .success(value):
41+
continuation.resume(returning: value)
42+
case let .failure(error):
43+
continuation.resume(throwing: error)
4444
}
4545
}
4646
}

Tests/AsyncAwait/ChannelGroupAsyncIntegrationTests.swift

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,11 @@ class ChannelGroupAsyncIntegrationTests: BaseAsyncIntegrationTestCase {
104104

105105
let presenceStream = channelGroup.streamPresence()
106106
let presenceTask = Task { [unowned self] in
107-
for await presenceData in presenceStream {
108-
if presenceData.count == 2 {
109-
XCTAssertEqual(presenceData[channel.id], [chat.currentUser.id])
110-
XCTAssertEqual(presenceData[secondChannel.id], [chat.currentUser.id])
111-
expectation.fulfill()
112-
break
113-
}
107+
for await presenceData in presenceStream where presenceData.count == 2 {
108+
XCTAssertEqual(presenceData[channel.id], [chat.currentUser.id])
109+
XCTAssertEqual(presenceData[secondChannel.id], [chat.currentUser.id])
110+
expectation.fulfill()
111+
break
114112
}
115113
}
116114

0 commit comments

Comments
 (0)