Skip to content

Commit

Permalink
Fixed usage of configure_new for connection key and connection id
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed Jun 10, 2024
1 parent aeb2e2b commit 897bccf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/acceptance/realtime/channel_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2470,7 +2470,7 @@ def self.build_flags(flags)
stop_reactor
end
client.connection.transport.close_connection_after_writing
client.connection.configure_new '0123456789abcdef', 'wVIsgTHAB1UvXh7z-1991d8586', -1 # force the resume connection key to be invalid
client.connection.configure_new '0123456789abcdef', 'wVIsgTHAB1UvXh7z-1991d8586' # force the resume connection key to be invalid
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/realtime/message_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ def publish_and_check_extras(extras)
if protocol_message.messages.find { |message| message.name == event_name }
EventMachine.add_timer(0.0001) do
connection.transport.unbind # trigger failure
connection.configure_new '0123456789abcdef', 'wVIsgTHAB1UvXh7z-1991d8586', -1 # force the resume connection key to be invalid
connection.configure_new '0123456789abcdef', 'wVIsgTHAB1UvXh7z-1991d8586' # force the resume connection key to be invalid
end
end
end
Expand Down

0 comments on commit 897bccf

Please sign in to comment.