mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-29 04:24:21 +00:00
Fix availability checks in tests
Fix `make test_framework_GRDBiOS_minTarget` with Xcode 13
This commit is contained in:
1 parent
c3618e0cf0
commit
a5dd61ff13
2 files changed
+12
-3
No files matched your search
@@ -95,8 +95,11 @@ class SharedValueObservationTests: GRDBTestCase {
|
||||
}
|
||||
|
||||
#if canImport(Combine)
|
||||
@available(OSX 10.15, iOS 13, tvOS 13, watchOS 6, *)
|
||||
func test_immediate_publisher() throws {
|
||||
guard #available(OSX 10.15, iOS 13, tvOS 13, watchOS 6, *) else {
|
||||
throw XCTSkip("Combine is not available")
|
||||
}
|
||||
|
||||
let dbQueue = try makeDatabaseQueue()
|
||||
try dbQueue.write { db in
|
||||
try db.create(table: "player") { t in
|
||||
@@ -361,8 +364,11 @@ class SharedValueObservationTests: GRDBTestCase {
|
||||
}
|
||||
|
||||
#if canImport(Combine)
|
||||
@available(OSX 10.15, iOS 13, tvOS 13, watchOS 6, *)
|
||||
func test_async_publisher() throws {
|
||||
guard #available(OSX 10.15, iOS 13, tvOS 13, watchOS 6, *) else {
|
||||
throw XCTSkip("Combine is not available")
|
||||
}
|
||||
|
||||
let dbQueue = try makeDatabaseQueue()
|
||||
try dbQueue.write { db in
|
||||
try db.create(table: "player") { t in
|
||||
|
||||
@@ -356,8 +356,11 @@ class TableRecordQueryInterfaceRequestTests: GRDBTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
@available(OSX 10.15, iOS 13.0, tvOS 13.0, watchOS 6, *)
|
||||
func testExistsIdentifiable() throws {
|
||||
guard #available(OSX 10.15, iOS 13.0, tvOS 13.0, watchOS 6, *) else {
|
||||
throw XCTSkip("Identifiable is not available")
|
||||
}
|
||||
|
||||
let dbQueue = try makeDatabaseQueue()
|
||||
try dbQueue.inTransaction { db in
|
||||
struct Player: TableRecord, Identifiable {
|
||||
|
||||
Reference in new issue
Block a user