Skip to content

Commit

Permalink
Fix regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
groue committed Oct 4, 2018
1 parent 950d6ec commit eb03706
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Tests/GRDBTests/DatabaseWriterTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,13 @@ class DatabaseWriterTests : GRDBTestCase {
// See https://github.com/groue/GRDB.swift/issues/424
func testIssue424Minimal() throws {
let dbQueue = try makeDatabaseQueue()
var statement: SelectStatement?
try dbQueue.inDatabase { db in
try db.execute("""
CREATE TABLE t(a);
INSERT INTO t VALUES (1);
PRAGMA query_only = 1;
""")
statement = try db.makeSelectStatement("SELECT * FROM t")
_ = try Row.fetchCursor(statement!).next()
_ = try Row.fetchCursor(db.cachedSelectStatement("SELECT * FROM t")).next()
}
try DatabaseQueue().backup(to: dbQueue)
}
Expand Down

0 comments on commit eb03706

Please sign in to comment.