         int.on(.next(nil))
         string.on(.next(nil))
         int.on(.next(3))
-        int.on(.done)
+        string.on(.done)
 
         waitForExpectations(timeout: 1) { _ in
             XCTAssert(received.count == 4)

        }
    }

    func testCombineLatestError() {
        let exp = expectation(description: "combineLatest")

        var received: [String] = []

            received.append("\(string): \(int)")
        }, onError: { _ in
            received.append("ERROR")
        })

        string.on(.next("The number"))
        int.on(.next(1))
        string.on(.error(TestError.test))

        string.on(.next("The digit"))
        int.on(.next(2))
        string.on(.error(TestError.test))

        exp.fulfill()

        waitForExpectations(timeout: 1) { _ in
            XCTAssert(received.count == 2)
