|  | @@ -589,6 +589,18 @@ describe 'ClientStub' do  # rubocop:disable Metrics/BlockLength
 | 
	
		
			
				|  |  |            responses.each { |r| p r }
 | 
	
		
			
				|  |  |          end
 | 
	
		
			
				|  |  |        end
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      it 'raises GRPC::Cancelled after the call has been cancelled' do
 | 
	
		
			
				|  |  | +        server_port = create_test_server
 | 
	
		
			
				|  |  | +        host = "localhost:#{server_port}"
 | 
	
		
			
				|  |  | +        th = run_server_streamer(@sent_msg, @replys, @pass)
 | 
	
		
			
				|  |  | +        stub = GRPC::ClientStub.new(host, :this_channel_is_insecure)
 | 
	
		
			
				|  |  | +        resp = get_responses(stub, run_start_call_first: false)
 | 
	
		
			
				|  |  | +        expect(resp.next).to eq('reply_1')
 | 
	
		
			
				|  |  | +        @op.cancel
 | 
	
		
			
				|  |  | +        expect { resp.next }.to raise_error(GRPC::Cancelled)
 | 
	
		
			
				|  |  | +        th.join
 | 
	
		
			
				|  |  | +      end
 | 
	
		
			
				|  |  |      end
 | 
	
		
			
				|  |  |    end
 | 
	
		
			
				|  |  |  
 |