From c08767b500388325da9abe264d2fb0907a8b4cf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Rou=C3=A9?= Date: Tue, 15 Sep 2026 14:36:27 +0200 Subject: [PATCH] Fix stale test The test was checking for the presence of an SQLite bug. This bug is gone in macOS 27.0. --- Tests/GRDBTests/FTS/Issue1838Tests.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Tests/GRDBTests/FTS/Issue1838Tests.swift b/Tests/GRDBTests/FTS/Issue1838Tests.swift index e20fc9c21..66b628ab2 100644 --- a/Tests/GRDBTests/FTS/Issue1838Tests.swift +++ b/Tests/GRDBTests/FTS/Issue1838Tests.swift @@ -45,9 +45,8 @@ class Issue1838Tests: GRDBTestCase { } // Make sure the interrupted state created by the FTS5 bug is no longer active. - let documentCount = try dbQueue.read { db in - try Int.fetchOne(db, sql: "SELECT COUNT(*) FROM documents")! + try dbQueue.read { db in + try db.execute(sql: "SELECT COUNT(*) FROM documents") } - XCTAssertEqual(documentCount, 0) } }