From f078e274f6cbc6d384d41f235396d738c6f9467f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20B=C3=A4lter?= Date: Wed, 12 Feb 2025 14:41:51 +0100 Subject: [PATCH] Cast to amqp connections --- spec/connection_spec.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/connection_spec.cr b/spec/connection_spec.cr index 2f49560708..d9f37132f9 100644 --- a/spec/connection_spec.cr +++ b/spec/connection_spec.cr @@ -82,7 +82,7 @@ describe LavinMQ::Server do config.channel_max = 0 with_amqp_server(config: config) do |s| AMQP::Client::UnsafeClient.new(port: amqp_port(s), channel_max: 0).connect_unsafe - s.connections.first.channel_max.should eq 0 + s.connections.first.as(LavinMQ::AMQP::Client).channel_max.should eq 0 end end @@ -131,7 +131,7 @@ describe LavinMQ::Server do config.frame_max = 0 with_amqp_server(config: config) do |s| AMQP::Client::UnsafeClient.new(port: amqp_port(s), frame_max: 0).connect_unsafe - s.connections.first.max_frame_size.should eq 0 + s.connections.first.as(LavinMQ::AMQP::Client).max_frame_size.should eq 0 end end