summaryrefslogtreecommitdiff
path: root/test/erl
diff options
context:
space:
mode:
authorDavid Reiss <dreiss@apache.org>2008-06-11 01:12:20 +0000
committerDavid Reiss <dreiss@apache.org>2008-06-11 01:12:20 +0000
commit65cf720b19f2dc2fc6a9cd18ee274a34f87c96b5 (patch)
tree8a70557e02451bd628f1e929a59f178cc606ea90 /test/erl
parent6d477592fa05ec88d8cbcb75d62a65b98a87cf13 (diff)
downloadthrift-65cf720b19f2dc2fc6a9cd18ee274a34f87c96b5.tar.gz
Add thrift_client:send_call which sends a function call but doesn't read a response.
Summary: This is for logging applications with thrift_disk_log_transport, so the function calls logged don't necessarily have to be async void Test plan: Added to test_disklog.erl git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666465 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/erl')
-rw-r--r--test/erl/src/test_disklog.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/erl/src/test_disklog.erl b/test/erl/src/test_disklog.erl
index 0044b832a..78b792c4d 100644
--- a/test/erl/src/test_disklog.erl
+++ b/test/erl/src/test_disklog.erl
@@ -13,11 +13,16 @@ t() ->
{ok, Client} = thrift_client:start_link(ProtocolFactory, thriftTest_thrift),
io:format("Client started~n"),
+
% We have to make async calls into this client only since otherwise it will try
% to read from the disklog and go boom.
{ok, ok} = thrift_client:call(Client, testAsync, [16#deadbeef]),
io:format("Call written~n"),
+ % Use the send_call method to write a non-async call into the log
+ ok = thrift_client:send_call(Client, testString, [<<"hello world">>]),
+ io:format("Non-async call sent~n"),
+
ok = thrift_client:close(Client),
io:format("Client closed~n"),