Skip to content

Commit

Permalink
One more round of tests fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Aug 16, 2018
1 parent caf1f75 commit 6f8237d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/test_coverage.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/test_rpc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6f8237d

Please sign in to comment.