test/error_replies_test.rb
# Every test shouldn't disconnect from the server. Also, when error replies are
# in play, the protocol should never get into an invalid state where there are
# pending replies in the connection. Calling INFO after every test ensures that
# the protocol is still in a valid state.
Every test shouldn't disconnect from the server. Also, when error replies are
in play, the protocol should never get into an invalid state where there are
pending replies in the connection. Calling INFO after every test ensures that
the protocol is still in a valid state.
Every test shouldn ' t disconnect from the server . Also when error replies are in play the protocol should never get into an invalid state where there are pending replies in the connection . Calling INFO after every test ensures that the protocol is still in a valid state .
def with_reconnection_check
    before = r.info["total_connections_received"]
    yield(r)
    after = r.info["total_connections_received"]
  ensure
    assert_equal before, after
  end
def with_reconnection_check before = r . info [ "total_connections_received" ] yield ( r ) after = r . info [ "total_connections_received" ] ensure assert_equal before , after end
Every test shouldn't disconnect from the server.
Every test shouldn ' t disconnect from the server .