Skip to content

Commit

Permalink
Fix compiler error
Browse files Browse the repository at this point in the history
  • Loading branch information
Supereg committed Jul 15, 2024
1 parent 8c8cf1e commit 529aa7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/StanfordSpezi/SpeziFoundation", from: "1.0.2"),
.package(url: "https://github.com/StanfordBDHG/XCTRuntimeAssertions", from: "1.0.1"),
.package(url: "https://github.com/StanfordBDHG/XCTRuntimeAssertions", from: "1.1.0"),
.package(url: "https://github.com/apple/swift-collections.git", from: "1.1.1")
] + swiftLintPackage(),
targets: [
Expand Down
3 changes: 2 additions & 1 deletion Tests/SpeziTests/DependenciesTests/DependencyTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ final class DependencyTests: XCTestCase { // swiftlint:disable:this type_body_le
let module3 = TestModule3()
let spezi = Spezi(standard: DefaultStandard(), modules: [TestModule1(), module3])

try XCTRuntimePrecondition {
try XCTRuntimePrecondition { @MainActor in
try? await Task.sleep(for: .seconds(0))
// cannot unload module that other modules still depend on
spezi.unloadModule(module3)
}
Expand Down

0 comments on commit 529aa7f

Please sign in to comment.