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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- A leading `GO` line sent to SQL Server by MCP and AI assistant tools, and a `GO n` count ignored.
- App hanging for a minute when an import stopped on a failing statement several megabytes long.
- SQL Server Windows Authentication to another realm failing when the service principal name is over 128 bytes.
- Data grid's inline cell editor and cell viewer unreachable by VoiceOver.

### Security

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,17 +399,18 @@ struct ConnectionManagerTests {

_ = try await manager.connect(connection)

let rescuedByTimer = Flag()
let rescue = Task {
try? await Task.sleep(for: .seconds(2))
try? await Task.sleep(for: .seconds(30))
guard !Task.isCancelled else { return }
await rescuedByTimer.raise()
await unblocked.open()
}
defer { rescue.cancel() }

let started = ContinuousClock.now
await manager.disconnect(connection.id)
let elapsed = ContinuousClock.now - started

#expect(elapsed < .seconds(1))
#expect(!(await rescuedByTimer.isRaised))
#expect(driver.disconnectCount == 1)
}

Expand Down Expand Up @@ -511,17 +512,14 @@ struct ConnectionManagerTests {
try await Task.sleep(for: .milliseconds(100))
attempt.cancel()

let started = ContinuousClock.now
let settled = await outcome.settled(within: .seconds(2))
let elapsed = ContinuousClock.now - started
let settled = await outcome.settled(within: .seconds(10))
#expect(!second.isConnected)

await stuck.open()
await release.value

let result = try #require(settled, "the cancelled connect never gave up")
#expect(throws: CancellationError.self) { try result.get() }
#expect(elapsed < .seconds(1))
}

@Test("A tunnel is opened for the connection being dialed, not for whoever asked last")
Expand Down
Loading
Loading