File tree Expand file tree Collapse file tree
main/java/io/grpc/s2a/handshaker
test/java/io/grpc/s2a/handshaker Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -142,7 +142,10 @@ public void close() {
142142 private void createWriterIfNull () {
143143 if (writer == null ) {
144144 writer =
145- serviceStub .withDeadlineAfter (HANDSHAKE_RPC_DEADLINE_SECS , SECONDS ).setUpSession (reader );
145+ serviceStub
146+ .withWaitForReady ()
147+ .withDeadlineAfter (HANDSHAKE_RPC_DEADLINE_SECS , SECONDS )
148+ .setUpSession (reader );
146149 }
147150 }
148151
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public void send_receiveOkStatus() throws Exception {
6262 IOException expected =
6363 assertThrows (IOException .class , () -> newStub .send (SessionReq .getDefaultInstance ()));
6464
65- assertThat (expected ).hasMessageThat ().contains ("UNAVAILABLE " );
65+ assertThat (expected ).hasMessageThat ().contains ("DEADLINE_EXCEEDED " );
6666 }
6767
6868 @ Test
You can’t perform that action at this time.
0 commit comments