Skip to content
Snippets Groups Projects
Commit 557d26f6 authored by Tim Emiola's avatar Tim Emiola
Browse files

Remove a bad flaky rpc server test

parent 0a775b38
No related branches found
No related tags found
No related merge requests found
...@@ -405,22 +405,6 @@ describe GRPC::RpcServer do ...@@ -405,22 +405,6 @@ describe GRPC::RpcServer do
t.join t.join
end end
it 'should not receive metadata if the client times out', server: true do
service = SlowService.new
@srv.handle(service)
t = Thread.new { @srv.run }
@srv.wait_till_running
req = EchoMsg.new
stub = SlowStub.new(@host, **client_opts)
timeout = 0.1 # too short for SlowService to respond
blk = proc { stub.an_rpc(req, timeout: timeout, k1: 'v1', k2: 'v2') }
expect(&blk).to raise_error GRPC::BadStatus
wanted_md = []
expect(service.received_md).to eq(wanted_md)
@srv.stop
t.join
end
it 'should handle cancellation correctly', server: true do it 'should handle cancellation correctly', server: true do
service = SlowService.new service = SlowService.new
@srv.handle(service) @srv.handle(service)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment