You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/test_rpc.jl
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ function test_rpc_client(;virtualhost="/", host="localhost", port=AMQPClient.AMQ
50
50
# publish NRPC_MSGS messages to the queue
51
51
while correlation_id < NRPC_MSGS
52
52
correlation_id +=1
53
-
M =Message(codeunits("hello from "* queue_name), content_type="text/plain", delivery_mode=PERSISTENT, reply_to=queue_name, correlation_id=string(correlation_id))
53
+
M =Message(Vector{UInt8}("hello from "* queue_name), content_type="text/plain", delivery_mode=PERSISTENT, reply_to=queue_name, correlation_id=string(correlation_id))
54
54
basic_publish(chan1, M; exchange=default_exchange_name(), routing_key=QUEUE_RPC)
55
55
# sleep a random time between 1 and 5 seconds between requests
56
56
sleep(rand())
@@ -116,7 +116,7 @@ function test_rpc_server(;virtualhost="/", host="localhost", port=AMQPClient.AMQ
116
116
resp_str ="$(my_server_id) received msg $(rpc_count) - $(reply_to): $(String(rcvd_msg.data))"
117
117
println("server ", resp_str)
118
118
119
-
M =Message(codeunits(resp_str), content_type="text/plain", delivery_mode=PERSISTENT, correlation_id=correlation_id)
119
+
M =Message(Vector{UInt8}(resp_str), content_type="text/plain", delivery_mode=PERSISTENT, correlation_id=correlation_id)
120
120
basic_publish(chan1, M; exchange=default_exchange_name(), routing_key=reply_to)
0 commit comments