Skip to content

Commit 44383df

Browse files
committed
Fix bundle lookup
1 parent 544e7b9 commit 44383df

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/SQLiteTests/Fixtures.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import Foundation
22

33
func fixture(_ name: String, withExtension: String?) -> String {
4+
#if SWIFT_PACKAGE
5+
let testBundle = Bundle.module
6+
#else
47
let testBundle = Bundle(for: SQLiteTestCase.self)
8+
#endif
59

610
for resource in [name, "fixtures/\(name)"] {
711
if let url = testBundle.url(

0 commit comments

Comments
 (0)