fix(test): subscribe with QoS 2 to receive QoS 2 message
This commit is contained in:
parent
1948719eec
commit
b5ad0f9815
|
@ -262,7 +262,7 @@ t_publish_as_persistent(_Config) ->
|
||||||
Sub = connect(<<?MODULE_STRING "1">>, true, 30),
|
Sub = connect(<<?MODULE_STRING "1">>, true, 30),
|
||||||
Pub = connect(<<?MODULE_STRING "2">>, true, 30),
|
Pub = connect(<<?MODULE_STRING "2">>, true, 30),
|
||||||
try
|
try
|
||||||
{ok, _, [1]} = emqtt:subscribe(Sub, <<"t/#">>, qos1),
|
{ok, _, [?RC_GRANTED_QOS_2]} = emqtt:subscribe(Sub, <<"t/#">>, qos2),
|
||||||
Messages = [
|
Messages = [
|
||||||
{<<"t/1">>, <<"1">>, 0},
|
{<<"t/1">>, <<"1">>, 0},
|
||||||
{<<"t/1">>, <<"2">>, 1},
|
{<<"t/1">>, <<"2">>, 1},
|
||||||
|
|
Loading…
Reference in New Issue