Skip to content

Conversation

adam-fowler
Copy link
Collaborator

No description provided.

Comment on lines +175 to +184
func testCommandError() async throws {
var logger = Logger(label: "Valkey")
logger.logLevel = .debug
try await ValkeyClient(.hostname(valkeyHostname, port: 6379), logger: logger).withConnection(logger: logger) { connection in
try await withKey(connection: connection) { key in
_ = try await connection.set(key: key, value: "Hello")
await #expect(throws: ValkeyClientError.self) { _ = try await connection.rpop(key: key) }
}
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you maybe want to add this as a unit test for both RESP variants?

@adam-fowler adam-fowler merged commit 3b199d0 into main Apr 6, 2025
2 checks passed
@adam-fowler adam-fowler deleted the error-handling branch April 6, 2025 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants