spec/acceptance/realtime/connection_failures_spec.rb in ably-1.1.0 vs spec/acceptance/realtime/connection_failures_spec.rb in ably-1.1.1

- old
+ new

@@ -919,11 +919,11 @@ end end end end - it 'retains the client_serial (#RTN15c2, #RTN15c3)' do + it 'retains the client_msg_serial (#RTN15c2, #RTN15c3)' do last_message = nil channel = client.channels.get("foo") channel.attach do connection.__outgoing_protocol_msgbus__.subscribe(:protocol_message) do |protocol_message| @@ -1101,11 +1101,11 @@ end kill_connection_transport_and_prevent_valid_resume end end - it 'resets the client_serial (#RTN15c3)' do + it 'continues to use the client_msg_serial (#RTN15c3)' do last_message = nil channel = client.channels.get("foo") connection.once(:connected) do connection.__outgoing_protocol_msgbus__.subscribe(:protocol_message) do |protocol_message| @@ -1119,10 +1119,10 @@ channel.publish("second") do expect(last_message.message_serial).to eql(1) connection.once(:connected) do channel.publish("first on new connection") do # Message serial reset after failed resume - expect(last_message.message_serial).to eql(0) + expect(last_message.message_serial).to eql(2) stop_reactor end end kill_connection_transport_and_prevent_valid_resume