Remove some useless availability checks in tests

This commit is contained in:
Gwendal Roué committed 2017-04-22 15:04:47 +02:00
1 parent dae4ae1c6b
commit 9b2a8f847f
3 files changed
+5 -26

No files matched your search

@@ -189,11 +189,6 @@ class DatabasePoolReleaseMemoryTests: GRDBTestCase {
}
func testDatabaseIteratorRetainConnection() throws {
// Until iOS 8.2, OSX 10.10, GRDB does not support deallocating a
// database when some statements are not finalized.
guard #available(iOS 8.2, OSX 10.10, *) else {
return
}
let countQueue = DispatchQueue(label: "GRDB")
var openConnectionCount = 0
var totalOpenConnectionCount = 0
@@ -276,12 +271,6 @@ class DatabasePoolReleaseMemoryTests: GRDBTestCase {
}
func testStatementDoNotRetainDatabaseConnection() throws {
// Until iOS 8.2, OSX 10.10, GRDB does not support deallocating a
// database when some statements are not finalized.
guard #available(iOS 8.2, OSX 10.10, *) else {
return
}
// Block 1 Block 2
// create statement INSERT
// >
@@ -104,12 +104,6 @@ class DatabaseQueueuReleaseMemoryTests: GRDBTestCase {
}
func testDatabaseIteratorRetainConnection() throws {
// Until iOS 8.2, OSX 10.10, GRDB does not support deallocating a
// database when some statements are not finalized.
guard #available(iOS 8.2, OSX 10.10, *) else {
return
}
let countQueue = DispatchQueue(label: "GRDB")
var openConnectionCount = 0
var totalOpenConnectionCount = 0
@@ -192,12 +186,6 @@ class DatabaseQueueuReleaseMemoryTests: GRDBTestCase {
}
func testStatementDoNotRetainDatabaseConnection() throws {
// Until iOS 8.2, OSX 10.10, GRDB does not support deallocating a
// database when some statements are not finalized.
guard #available(iOS 8.2, OSX 10.10, *) else {
return
}
// Block 1 Block 2
// create statement INSERT
// >
@@ -262,9 +262,11 @@ class DatabaseTests : GRDBTestCase {
func testFailedCommitIsRollbacked() throws {
// PRAGMA defer_foreign_keys = ON was introduced in SQLite 3.12.0 http://www.sqlite.org/changes.html#version_3_8_0
// It is available from iOS 8.2 and OS X 10.10 https://github.com/yapstudios/YapDatabase/wiki/SQLite-version-(bundled-with-OS)
guard #available(iOS 8.2, OSX 10.10, *) else {
return
}
#if !USING_CUSTOMSQLITE && !USING_SQLCIPHER
guard #available(iOS 8.2, OSX 10.10, *) else {
return
}
#endif
let dbQueue = try makeDatabaseQueue()
try dbQueue.inDatabase { db in