Skip to content

Commit

Permalink
WIP cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
charlag authored and tutao-mac committed Mar 10, 2025
1 parent 7dc65ff commit 5d903d1
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions app-ios/TutanotaSharedTests/TestUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import Mockingbird
import Testing
import XCTest

/// Make Mockingbird work with Testing framework.
/// Note: it will stop reporting failures for XCTests so you shoudln't mix XCTest and Testing tests in one test target!
func initMockingbird() {
struct SwiftTestFailer: TestFailer {
func fail(message: String, isFatal: Bool, file: StaticString, line: UInt) {
Expand All @@ -21,23 +23,6 @@ func initMockingbird() {
swizzleTestFailer(SwiftTestFailer())
}

extension XCTest {
func initMockingbird() {
class StandardTestFailer: TestFailer {
func fail(message: String, isFatal: Bool, file: StaticString, line: UInt) {
guard isFatal else { return XCTFail(message, file: file, line: line) }

// we don't do this
// Raise an Objective-C exception to stop the test runner.
// MKBStopTest(message)

// Test execution should usually be stopped by this point.
fatalError(message)
}
}
}
}

struct ResolvableFuture {
private let future: Future<Void, Never>
private let promise: Future<Void, Never>.Promise
Expand Down

0 comments on commit 5d903d1

Please sign in to comment.