From 88e8c2ba332fde3c19397a8abd6e810450795c42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Fri, 8 Jul 2016 16:10:38 +0200 Subject: [PATCH] #80 cleanup --- .../DatabasePoolConcurrencyTests.swift | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/Tests/Public/Core/DatabasePool/DatabasePoolConcurrencyTests.swift b/Tests/Public/Core/DatabasePool/DatabasePoolConcurrencyTests.swift index bbca5fa2c..8e5bdd74b 100644 --- a/Tests/Public/Core/DatabasePool/DatabasePoolConcurrencyTests.swift +++ b/Tests/Public/Core/DatabasePool/DatabasePoolConcurrencyTests.swift @@ -442,21 +442,17 @@ class DatabasePoolConcurrencyTests: GRDBTestCase { // SQLite has a statement that modifies the sqlite_master table, is // still allowed as a regular select statement. assertNoError { - do { - // This test uses a database pool, a connection for creating the - // search virtual table, and another conncetion for reading. - // - // This is the tested setup: don't change it. - - let dbPool = try makeDatabasePool() - dbPool.write { db in - try! db.execute("CREATE VIRTUAL TABLE search USING fts3(title, tokenize = unicode61)") - } - - let rows = dbPool.read { db -> [Row] in - return Row.fetchAll(db, "SELECT * FROM search") - } - print(rows) + // This test uses a database pool, a connection for creating the + // search virtual table, and another connection for reading. + // + // This is the tested setup: don't change it. + + let dbPool = try makeDatabasePool() + try dbPool.write { db in + try db.execute("CREATE VIRTUAL TABLE search USING fts3(title, tokenize = unicode61)") + } + dbPool.read { db in + _ = Row.fetchAll(db, "SELECT * FROM search") } } }