Fix asserts in tests.
This commit is contained in:
parent
da81ad4686
commit
65fb0efd40
@ -78,7 +78,8 @@ class MobileCoinAPI: Dependencies {
|
||||
// MARK: -
|
||||
|
||||
public static func configureSDKLogging() {
|
||||
if DebugFlags.internalLogging {
|
||||
if DebugFlags.internalLogging,
|
||||
!CurrentAppContext().isRunningTests {
|
||||
MobileCoinLogging.logSensitiveData = true
|
||||
}
|
||||
}
|
||||
|
||||
@ -328,6 +328,9 @@ public class TSPaymentModels: NSObject {
|
||||
@objc(parsePaymentProtosInDataMessage:thread:)
|
||||
public class func parsePaymentProtos(dataMessage: SSKProtoDataMessage,
|
||||
thread: TSThread) -> TSPaymentModels? {
|
||||
guard !CurrentAppContext().isRunningTests else {
|
||||
return nil
|
||||
}
|
||||
guard payments.arePaymentsEnabled else {
|
||||
return nil
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user