diff --git a/Package.swift b/Package.swift index f35423f9..05cc449d 100644 --- a/Package.swift +++ b/Package.swift @@ -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: [ diff --git a/Tests/SpeziTests/DependenciesTests/DependencyTests.swift b/Tests/SpeziTests/DependenciesTests/DependencyTests.swift index 4e575488..ea22518d 100644 --- a/Tests/SpeziTests/DependenciesTests/DependencyTests.swift +++ b/Tests/SpeziTests/DependenciesTests/DependencyTests.swift @@ -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) }