Skip to content

Commit 3c6adf1

Browse files
snichmespuun
andauthored
Update spec/packets_spec.cr
Co-authored-by: Jon Börjesson <jon@spuun.se>
1 parent 199f0b4 commit 3c6adf1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/packets_spec.cr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ describe MQTT::Protocol::Packet do
177177
connect = connect.should be_a MQTT::Protocol::Connect
178178
connect.username.should eq username
179179
connect.password.should eq password
180-
connect.will.try(&.topic).should eq wtopic
180+
will = connect.will.should_not be_nil
181+
will.topic.should eq wtopic
181182
end
182183

183184
it "supports MQTT 3.1 protocol" do

0 commit comments

Comments
 (0)