File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
interop-testing/src/main/java/io/grpc/testing/integration Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,8 @@ public enum TestCases {
6060 CHANNEL_SOAK ("sends 'soak_iterations' large_unary rpcs in a loop, each on a new channel" ),
6161 ORCA_PER_RPC ("report backend metrics per query" ),
6262 ORCA_OOB ("report backend metrics out-of-band" ),
63- MCS ("max concurrent streaming" );
63+ MCS ("max concurrent streaming" ),
64+ MCSSS ("mcs server streaming" );
6465
6566 private final String description ;
6667
Original file line number Diff line number Diff line change @@ -581,6 +581,11 @@ private void runTest(TestCases testCase) throws Exception {
581581 break ;
582582 }
583583
584+ case MCSSS : {
585+ tester .testMcs_serverStreaming ();
586+ break ;
587+ }
588+
584589 default :
585590 throw new IllegalArgumentException ("Unknown test case: " + testCase );
586591 }
@@ -1123,7 +1128,16 @@ public void testMcs() throws Exception {
11231128
11241129 assertThat (fakeMetricsSink .openConnectionCount ).isEqualTo (2 );
11251130 }
1126- }
1131+
1132+ public void testMcs_serverStreaming () throws Exception {
1133+ StreamingOutputCallRequest request = StreamingOutputCallRequest .newBuilder ()
1134+ .addResponseParameters (ResponseParameters .newBuilder ().setSize (1 ).build ()).build ();
1135+ StreamingOutputCallResponseObserver responseObserver1 = new StreamingOutputCallResponseObserver ();
1136+ asyncStub .streamingOutputCall (request , responseObserver1 );
1137+ assertThat (responseObserver1 .take ()).isInstanceOf (StreamingOutputCallResponse .class );
1138+ }
1139+
1140+ }
11271141
11281142 private static String validTestCasesHelpText () {
11291143 StringBuilder builder = new StringBuilder ();
You can’t perform that action at this time.
0 commit comments