File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -82,12 +82,12 @@ extension ClientTimeoutTests {
8282 func testBidirectionalStreamingTimeoutPassedToReceiveMethod( ) {
8383 let completionHandlerExpectation = expectation ( description: " final completion handler called " )
8484 let call = try ! client. update { callResult in
85- XCTAssertEqual ( . deadlineExceeded , callResult. statusCode)
85+ XCTAssertEqual ( . ok , callResult. statusCode)
8686 completionHandlerExpectation. fulfill ( )
8787 }
8888
8989 do {
90- let result = try call. receive ( timeout: . now( ) + . milliseconds( 50 ) )
90+ let result = try call. receive ( timeout: . now( ) + . milliseconds( 10 ) )
9191 XCTFail ( " should have thrown, received \( String ( describing: result) ) instead " )
9292 } catch let receiveError {
9393 if case . timedOut = receiveError as! RPCError {
@@ -96,6 +96,8 @@ extension ClientTimeoutTests {
9696 XCTFail ( " received error \( receiveError) instead of .timedOut " )
9797 }
9898 }
99+
100+ try ! call. closeSend ( )
99101
100102 waitForExpectations ( timeout: defaultTimeout)
101103 }
You can’t perform that action at this time.
0 commit comments