From 6f8237dd95126ebf7af65c5f1e93d8349ff2915a Mon Sep 17 00:00:00 2001 From: quinnj Date: Thu, 16 Aug 2018 08:01:44 -0600 Subject: [PATCH] One more round of tests fixes --- test/test_coverage.jl | 2 +- test/test_rpc.jl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_coverage.jl b/test/test_coverage.jl index f92983a..5d0d835 100644 --- a/test/test_coverage.jl +++ b/test/test_coverage.jl @@ -68,7 +68,7 @@ function runtests(;virtualhost="/", host="localhost", port=AMQPClient.AMQP_DEFAU @test rcvd_msg.routing_key == ROUTE1 @test rcvd_msg.data == M.data @test :content_type in keys(rcvd_msg.properties) - @test String(rcvd_msg.properties[:content_type]) == "text/plain" + @test convert(String, rcvd_msg.properties[:content_type]) == "text/plain" end # basic get returns null if no more messages diff --git a/test/test_rpc.jl b/test/test_rpc.jl index 5ebdfe0..566a1a4 100644 --- a/test/test_rpc.jl +++ b/test/test_rpc.jl @@ -110,8 +110,8 @@ function test_rpc_server(;virtualhost="/", host="localhost", port=AMQPClient.AMQ rpc_count += 1 @test :reply_to in keys(rcvd_msg.properties) - reply_to = String(rcvd_msg.properties[:reply_to]) - correlation_id = String(rcvd_msg.properties[:correlation_id]) + reply_to = convert(String, rcvd_msg.properties[:reply_to]) + correlation_id = convert(String, rcvd_msg.properties[:correlation_id]) resp_str = "$(my_server_id) received msg $(rpc_count) - $(reply_to): $(String(rcvd_msg.data))" println("server ", resp_str)