Skip to content

Commit

Permalink
* FIX [trantest] avoid frequently fail test v2
Browse files Browse the repository at this point in the history
Signed-off-by: Hermann0222 <yukang.wei@emqx.io>
  • Loading branch information
OdyWayne committed Nov 17, 2023
1 parent c4e29c6 commit 63faf1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/trantest.h
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ trantest_mqtt_sub_pub(trantest *tt)
trantest_mqtt_sub_send(tt->reqsock, client, true);
nng_msleep(1000);// make sure the server recv sub msg before we send pub msg.
cp1 = trantest_mqtt_pub(tt->repsock, true);
nng_msleep(1000);
nng_msleep(2000);
cp2 = trantest_mqtt_sub_recv(tt->reqsock);
trantest_mqtt_unsub_send(tt->reqsock, client, true);
// syn sub & unsub
Expand Down Expand Up @@ -736,7 +736,7 @@ trantest_mqttv5_sub_pub(trantest *tt)
trantest_mqtt_sub_send(tt->reqsock, client, true);
nng_msleep(1000);// make sure the server recv sub msg before we send pub msg.
cp1 = trantest_mqtt_pub(tt->repsock, true);
nng_msleep(1000);
nng_msleep(2000);
cp2 = trantest_mqtt_sub_recv(tt->reqsock);
trantest_mqtt_unsub_send(tt->reqsock, client, true);
nng_mqtt_disconnect(&(tt->reqsock), 0, NULL);
Expand Down

0 comments on commit 63faf1d

Please sign in to comment.