             self.FBSnapshotVerifyView(view)
             exp.fulfill()
         }
-        waitForExpectations(timeout: 1) { _ in }
+        let _ = waiter.wait(for: [exp], timeout: 1)
     }
 }

import BSWInterfaceKit

class BSWSnapshotTest: FBSnapshotTestCase {
    override func setUp() {
        super.setUp()


        rootViewController!.present(viewController, animated: true, completion: {
            exp.fulfill()
        })
        let _ = waiter.wait(for: [exp], timeout: 10)
    }

    func waitABitAndVerify(viewController: UIViewController) {
