Skip to content

Commit

Permalink
Fix old code
Browse files Browse the repository at this point in the history
  • Loading branch information
Supereg committed Jun 23, 2024
1 parent 3de8dcc commit cd396a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/SpeziTests/DependenciesTests/DependencyTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ final class DependencyTests: XCTestCase { // swiftlint:disable:this type_body_le

let spezi = Spezi(standard: DefaultStandard(), modules: [optionalModule, moduleX, module8])

spezi.loadModule(module1, policy: .selfManaged) // LOAD AS SELFMANAGED
spezi.loadModule(module1, ownership: .external) // LOAD AS EXTERNAL
XCTAssertEqual(optionalModule.nums, [5, 5, 4, 3, 2, 1, 9, 10, 11])

// leaving this scope causes the module1 to deallocate and should automatically unload it from Spezi!
Expand Down

0 comments on commit cd396a6

Please sign in to comment.