Skip to content
Snippets Groups Projects
Commit 47b80bc5 authored by Jorge Canizales's avatar Jorge Canizales
Browse files

Test that GRPCCall transitions states properly

parent 514699c6
No related branches found
No related tags found
No related merge requests found
......@@ -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];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment