blob: bfc3e333523d9b3fc792c939e4570fe67e98f14a [file] [log] [blame]
// Copyright 2016 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
import XCTest
import Syncbase
extension XCTestCase {
func asyncDbTest(runBlock: Database throws -> Void) {
do {
let db = try Syncbase.database()
try runBlock(db)
} catch let e {
XCTFail("Unexpected error: \(e)")
}
}
}