Test that GRPCCall transitions states properly

pull/6386/head
Jorge Canizales 9 years ago
parent 514699c63b
commit 47b80bc558
  1. 6
      src/objective-c/tests/InteropTests.m

@ -272,8 +272,14 @@
XCTAssertEqual(error.code, GRPC_STATUS_CANCELLED);
[expectation fulfill];
}];
XCTAssertEqual(call.state, GRXWriterStateNotStarted);
[call start];
XCTAssertEqual(call.state, GRXWriterStateStarted);
[call cancel];
XCTAssertEqual(call.state, GRXWriterStateFinished);
[self waitForExpectationsWithTimeout:1 handler:nil];
}

Loading…
Cancel
Save