Fix asserts in tests.

This commit is contained in:
Matthew Chen 2021-04-02 14:30:25 -03:00
parent da81ad4686
commit 65fb0efd40
2 changed files with 5 additions and 1 deletions

View File

@ -78,7 +78,8 @@ class MobileCoinAPI: Dependencies {
// MARK: -
public static func configureSDKLogging() {
if DebugFlags.internalLogging {
if DebugFlags.internalLogging,
!CurrentAppContext().isRunningTests {
MobileCoinLogging.logSensitiveData = true
}
}

View File

@ -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
}