-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: reproduce 1.2.8 bug in v2 to see if exists
- Loading branch information
1 parent
22f81b7
commit 877efd9
Showing
1 changed file
with
8 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
@testable import CioTracking | ||
@testable import CioMessagingInApp | ||
@testable import CioTracking | ||
@testable import Common | ||
import Foundation | ||
import SharedTests | ||
import XCTest | ||
|
||
class MessagingInAppIntegrationTests: IntegrationTest { | ||
|
||
// Reproduce bug: https://github.com/customerio/customerio-ios/issues/242 | ||
// Bug reported when: using in-app messaging, debug logging enabled, and using iOS version 1.2.8. | ||
// Report: https://github.com/customerio/customerio-ios/issues/242 | ||
func test_initialize_enableDebugLogs_() { | ||
CustomerIO.resetSharedInstance() | ||
|
||
CustomerIO.initialize(siteId: testSiteId, apiKey: .random) | ||
CustomerIO.config { | ||
tearDown() // re-initialize with different configuration options. | ||
|
||
CustomerIO.initialize(siteId: testSiteId, apiKey: .random, region: .EU) { | ||
$0.logLevel = .debug | ||
} | ||
MessagingInApp.shared.initialize(organizationId: .random) | ||
|
||
MessagingInApp.initialize(organizationId: .random) // would crash because DiGraph not initialized | ||
} | ||
} |