Skip to content

Commit

Permalink
Only create test bundle when requested
Browse files Browse the repository at this point in the history
  • Loading branch information
pietrocaselani committed May 1, 2019
1 parent 105760b commit 9f39e33
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CouchTrackerCore/Core/BundleProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import Foundation
final class BundleProvider {
static let testing = NSClassFromString("XCTestCase") != nil

private static var testBundle = Bundle(identifier: "io.github.pietrocaselani.CouchTrackerCoreTests")!

private init() {
fatalError("No instances for you!")
}
Expand All @@ -14,6 +12,6 @@ final class BundleProvider {
return Bundle.main
}

return testBundle
return Bundle(identifier: "io.github.pietrocaselani.CouchTrackerCoreTests")!
}
}

0 comments on commit 9f39e33

Please sign in to comment.