Skip to content

Commit 6f8237d

Browse files
committed
One more round of tests fixes
1 parent caf1f75 commit 6f8237d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/test_coverage.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function runtests(;virtualhost="/", host="localhost", port=AMQPClient.AMQP_DEFAU
6868
@test rcvd_msg.routing_key == ROUTE1
6969
@test rcvd_msg.data == M.data
7070
@test :content_type in keys(rcvd_msg.properties)
71-
@test String(rcvd_msg.properties[:content_type]) == "text/plain"
71+
@test convert(String, rcvd_msg.properties[:content_type]) == "text/plain"
7272
end
7373

7474
# basic get returns null if no more messages

test/test_rpc.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ function test_rpc_server(;virtualhost="/", host="localhost", port=AMQPClient.AMQ
110110
rpc_count += 1
111111

112112
@test :reply_to in keys(rcvd_msg.properties)
113-
reply_to = String(rcvd_msg.properties[:reply_to])
114-
correlation_id = String(rcvd_msg.properties[:correlation_id])
113+
reply_to = convert(String, rcvd_msg.properties[:reply_to])
114+
correlation_id = convert(String, rcvd_msg.properties[:correlation_id])
115115

116116
resp_str = "$(my_server_id) received msg $(rpc_count) - $(reply_to): $(String(rcvd_msg.data))"
117117
println("server ", resp_str)

0 commit comments

Comments
 (0)