summaryrefslogtreecommitdiff
path: root/lib/wx/test
diff options
context:
space:
mode:
authorDan Gudmundsson <dgud@erlang.org>2019-12-13 14:34:31 +0100
committerDan Gudmundsson <dgud@erlang.org>2019-12-17 11:29:25 +0100
commitb092f750bd736d4eccf889eba52a5ea6658ffea9 (patch)
tree90edf72c10fb569129104f398bf7e787dbf6c320 /lib/wx/test
parent9a4f7576f8b85e87686705d0b6cf8e778a5cb7a8 (diff)
downloaderlang-b092f750bd736d4eccf889eba52a5ea6658ffea9.tar.gz
Add tag to response message
Since users may now inspect the message queue between, 'send_req' and 'wait_response' which may contain the reply message which is a bit non-descriptive, a tag is added to explain it. This doesn't mean that the message interface is set in stone or documented, it can still be changed.
Diffstat (limited to 'lib/wx/test')
-rw-r--r--lib/wx/test/wx_basic_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/wx/test/wx_basic_SUITE.erl b/lib/wx/test/wx_basic_SUITE.erl
index 16b531be6c..433b705673 100644
--- a/lib/wx/test/wx_basic_SUITE.erl
+++ b/lib/wx/test/wx_basic_SUITE.erl
@@ -397,11 +397,11 @@ wx_object(Config) ->
flush(),
ReqId = wx_object:send_request(Frame, fun(_US) -> timer:sleep(10), yes end),
timeout = wx_object:wait_response(ReqId, 0),
- {reply, {call, yes, {Me,ReqId}}} = wx_object:wait_response(ReqId, 1000),
+ {reply, {call, yes, {Me,{_,ReqId}}}} = wx_object:wait_response(ReqId, 1000),
ReqId2 = wx_object:send_request(Frame, yes),
[Msg] = flush(),
no_reply = wx_object:check_response(Msg, ReqId),
- {reply, {call, yes, {Me,ReqId2}}} = wx_object:check_response(Msg, ReqId2),
+ {reply, {call, yes, {Me,{_,ReqId2}}}} = wx_object:check_response(Msg, ReqId2),
FramePid = wx_object:get_pid(Frame),
io:format("wx_object pid ~p~n",[FramePid]),