test/test_anonymous.rb in stomp-1.4.8 vs test/test_anonymous.rb in stomp-1.4.9
- old
+ new
@@ -82,10 +82,12 @@
def test_receipt
mn = "test_receipt" if @tandbg
p [ "01", mn, "starts" ] if @tandbg
conn_subscribe make_destination, :receipt => "abc"
msg = @conn.receive
- assert_equal "abc", msg.headers['receipt-id']
+ tval = msg.headers['receipt-id']
+ tval = msg.headers['receipt-id'][0] if msg.headers['receipt-id'].is_a?(Array)
+ assert_equal "abc", tval
checkEmsg(@conn)
p [ "99", mn, "ends" ] if @tandbg
end
# Test asking for a receipt on disconnect.