IOS-1495 now update is not the firs expectation IOS-1495
authorXavier Algarra <xavier@pep-project.org>
Fri, 15 Mar 2019 19:38:01 +0100
branchIOS-1495
changeset 8013b4b7750a4648
parent 8012 3b0fadafee82
child 8017 60971e1b8ab6
IOS-1495 now update is not the firs expectation
pEpForiOSTests/Models/EmailListViewModelTest.swift
     1.1 --- a/pEpForiOSTests/Models/EmailListViewModelTest.swift	Fri Mar 15 19:04:39 2019 +0100
     1.2 +++ b/pEpForiOSTests/Models/EmailListViewModelTest.swift	Fri Mar 15 19:38:01 2019 +0100
     1.3 @@ -494,20 +494,8 @@
     1.4      }
     1.5  
     1.6      fileprivate func createViewModelWithExpectations(expectedUpdateView: Bool) {
     1.7 -        var viewModelTestDelegate : TestMasterViewController?
     1.8 -
     1.9 -        if expectedUpdateView {
    1.10 -            let updateViewExpectation = expectation(description: "UpdateViewCalled")
    1.11 -            viewModelTestDelegate = TestMasterViewController(
    1.12 -                expectationUpdateView: updateViewExpectation)
    1.13 -        }
    1.14 -        guard let vmTestDelegate = viewModelTestDelegate else {
    1.15 -            XCTFail()
    1.16 -            return
    1.17 -        }
    1.18 -        self.masterViewController = viewModelTestDelegate
    1.19 -        setUpViewModel(masterViewController: vmTestDelegate)
    1.20 -        waitForExpectations(timeout: TestUtil.waitTime)
    1.21 +        let viewModelTestDelegate = TestMasterViewController()
    1.22 +        setUpViewModel(masterViewController: viewModelTestDelegate)
    1.23      }
    1.24  
    1.25      fileprivate func setUpViewModelExpectations(expectedUpdateView: Bool = false,