Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Switching schemas on an Oracle connection no longer hangs on an infinite loading spinner. Oracle now switches by schema like BigQuery, the sidebar lists every schema with its tables loading on expand, Oracle queries respect the query timeout setting and reconnect automatically after a timeout, and a schema load that fails shows an error with a Retry button instead of spinning forever. Works with an already-installed Oracle plugin; updating the plugin adds the query timeout enforcement. (#1807)

## [0.55.0] - 2026-07-04

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,42 @@ final class AsyncTimeoutTests: XCTestCase {
XCTFail("Expected Boom, got \(error)")
}
}

func testOnTimeoutUnblocksCancellationDeafOperation() async {
final class Latch: @unchecked Sendable {
var continuation: CheckedContinuation<Void, Never>?
}
struct Closed: Error {}
let latch = Latch()

do {
_ = try await withTimeout(
seconds: 0.05,
onTimeout: {
latch.continuation?.resume()
latch.continuation = nil
}
) { () -> Int in
await withCheckedContinuation { latch.continuation = $0 }
throw Closed()
}
XCTFail("Expected an error")
} catch {
// TimeoutError or Closed both prove onTimeout unblocked the operation.
// Without it this test hangs: the continuation ignores task
// cancellation and the group waits for the operation child.
}
}

func testOnTimeoutNotInvokedWhenOperationWins() async throws {
final class Flag: @unchecked Sendable {
var value = false
}
let flag = Flag()

let value = try await withTimeout(seconds: 5, onTimeout: { flag.value = true }) { 42 }

XCTAssertEqual(value, 42)
XCTAssertFalse(flag.value)
}
}
Loading
Loading