aboutsummaryrefslogtreecommitdiff
path: root/test/suite.erl
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2018-09-14 20:27:59 +0200
committerPaweł Chmielowski <pchmielowski@process-one.net>2018-09-14 20:27:59 +0200
commitd4579d2a2009cdb69ef2ae52ae6419c27409070e (patch)
tree6811abbe1c33e8305576576f546fc2a9554b5ec2 /test/suite.erl
parent[tests] Update stream_id from stream:stream after auth (diff)
[test] Improve match macro
Diffstat (limited to 'test/suite.erl')
-rw-r--r--test/suite.erl6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/suite.erl b/test/suite.erl
index ecdbd71fb..efe587253 100644
--- a/test/suite.erl
+++ b/test/suite.erl
@@ -471,9 +471,7 @@ wait_auth_SASL_result(Config, ShouldFail) ->
NS = if Type == client -> ?NS_CLIENT;
Type == server -> ?NS_SERVER
end,
- Config2 = receive #stream_start{id = ID, xmlns = NS, version = {1,0}} ->
- set_opt(stream_id, ID, Config)
- end,
+ receive #stream_start{xmlns = NS, version = {1,0}} -> ok end,
receive #stream_features{sub_els = Fs} ->
if Type == client ->
#xmpp_session{optional = true} =
@@ -490,7 +488,7 @@ wait_auth_SASL_result(Config, ShouldFail) ->
set_opt(rosterver, true, ConfigAcc);
(_, ConfigAcc) ->
ConfigAcc
- end, Config2, Fs)
+ end, Config, Fs)
end;
#sasl_challenge{text = ClientIn} ->
{Response, SASL} = (?config(sasl, Config))(ClientIn),