Skip to content

A native macOS / windows / Linux database IDE built with Swift and AppKit. Connect to PostgreSQL, MySQL, SQLite, and Redis from a single app with a fast, keyboard-driven interface.

C++

test(postgres): provide schemas to owned reload race

Tobi4da529f3bfad
diff --git a/macos/Tests/GridexTests/PostgreSQLSchemaActionRegressionTests.swift b/macos/Tests/GridexTests/PostgreSQLSchemaActionRegressionTests.swift
index b972f54..51ee1b1 100644
--- a/macos/Tests/GridexTests/PostgreSQLSchemaActionRegressionTests.swift
+++ b/macos/Tests/GridexTests/PostgreSQLSchemaActionRegressionTests.swift
@@ -9,7 +9,11 @@ import XCTest
final class SidebarLoadPublicationTests: XCTestCase {
func test_staleSchemaLoadCannotReplaceNewerSidebarContents() async {
let gate = SidebarLoadGate()
- let adapter = RecordingDatabaseAdapter(blockedSchema: "tenant_a", gate: gate)
+ let adapter = RecordingDatabaseAdapter(
+ schemas: ["tenant_a", "tenant_b"],
+ blockedSchema: "tenant_a",
+ gate: gate
+ )
let appState = AppState()
let config = makePostgreSQLConfig()