Fix performance tests

This commit is contained in:
Gwendal Roué committed 2016-04-26 13:27:42 +02:00
1 parent 663b89a4a5
commit 4c52d51aa2
1 file changed
+3 -1
+3 -1
View File
@@ -93,7 +93,9 @@ class FetchRecordTests: XCTestCase {
let dbQueue = try! DatabaseQueue(path: databasePath)
measureBlock {
let items = Item.fetchAll(dbQueue, "SELECT * FROM items")
let items = dbQueue.inDatabase { db in
Item.fetchAll(db, "SELECT * FROM items")
}
XCTAssertEqual(items.count, expectedRowCount)
XCTAssertEqual(items[0].i0, 0)
XCTAssertEqual(items[1].i1, 1)