Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
r-dent committed Aug 21, 2024
1 parent fd1ef4b commit 0d2f589
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ final actor InternalStreamDeckSession {
devicesByService[service] = device

client.setErrorHandler { [weak self] error in
if case let .disconnected = error, let self = self {
if case .disconnected = error, let self = self {
Task { await self.stop() }
}
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/StreamDeckSDKTests/Helper/StreamDeckClientMock.swift
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ extension StreamDeckClientMock: StreamDeckClientProtocol {
subscribedToInputEventsSubject.send(true)
}

func setErrorHandler(_ handler: @escaping ClientErrorHandler) {}
public func setErrorHandler(_ handler: @escaping ClientErrorHandler) {}

public func setBrightness(_ brightness: Int) {
lock.lock(); defer { lock.unlock() }
Expand Down

0 comments on commit 0d2f589

Please sign in to comment.