             })
             semaphore.signal()
             
-            waitForExpectations(timeout: 1, handler: nil)
+            waitForExpectations(timeout: 2, handler: nil)
             let tableExists = try dbWriter.read { try $0.tableExists("testAsyncWrite") }
             XCTAssertTrue(tableExists)
         }

            }
            semaphore.signal()

            waitForExpectations(timeout: 1, handler: nil)
            let tableExists = try dbWriter.read { try $0.tableExists("testAsyncWriteWithoutTransaction") }
            XCTAssertTrue(tableExists)
        }

                expectation.fulfill()
            }
            semaphore.signal()
            waitForExpectations(timeout: 2, handler: nil)
        }
        
        try test(makeDatabaseQueue())
