Skip to content

Commit

Permalink
database tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RomeroYang committed Jul 22, 2024
1 parent 75190ef commit e527ae5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Database/Tests/DatabaseTests/DatabaseTests.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@testable import Database
import XCTest

final class DatabaseTests: XCTestCase {
final class DatabaseTests: XCTestCase, @unchecked Sendable {
var database: Database!

func testSimplePut() {
Expand Down Expand Up @@ -148,4 +148,11 @@ final class DatabaseTests: XCTestCase {
XCTFail("An error occurred during batch test: \(error)")
}
}

static let allTests = [
("testSimplePut", testSimplePut),
("testSimpleDelete", testSimpleDelete),
("testSimpleIterator", testSimpleIterator),
("testBatchOperations", testBatchOperations),
]
}
9 changes: 9 additions & 0 deletions Database/Tests/DatabaseTests/XCTestManifests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import XCTest

#if !canImport(ObjectiveC)
public func allTests() -> [XCTestCaseEntry] {
[
testCase(DatabaseTests.allTests),
]
}
#endif

0 comments on commit e527ae5

Please sign in to comment.