Skip to content

Commit b664fd6

Browse files
author
Devdutt Shenoi
committed
test: run on unique port
1 parent 15ffccf commit b664fd6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

rumqttc/tests/reliability.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ async fn state_is_being_cleaned_properly_and_pending_request_calculated_properly
591591

592592
#[tokio::test]
593593
async fn resolve_on_qos0_before_write_to_tcp_buffer() {
594-
let options = MqttOptions::new("dummy", "127.0.0.1", 3004);
594+
let options = MqttOptions::new("dummy", "127.0.0.1", 3005);
595595
let (client, mut eventloop) = AsyncClient::new(options, 5);
596596

597597
task::spawn(async move {
@@ -609,7 +609,7 @@ async fn resolve_on_qos0_before_write_to_tcp_buffer() {
609609
}
610610
});
611611

612-
let mut broker = Broker::new(3004, 0, false).await;
612+
let mut broker = Broker::new(3005, 0, false).await;
613613

614614
let token = client
615615
.publish("hello/world", QoS::AtMostOnce, false, [1; 1])
@@ -645,7 +645,7 @@ async fn resolve_on_qos0_before_write_to_tcp_buffer() {
645645

646646
#[tokio::test]
647647
async fn resolve_on_qos1_ack_from_broker() {
648-
let options = MqttOptions::new("dummy", "127.0.0.1", 3004);
648+
let options = MqttOptions::new("dummy", "127.0.0.1", 3006);
649649
let (client, mut eventloop) = AsyncClient::new(options, 5);
650650

651651
task::spawn(async move {
@@ -663,7 +663,7 @@ async fn resolve_on_qos1_ack_from_broker() {
663663
}
664664
});
665665

666-
let mut broker = Broker::new(3004, 0, false).await;
666+
let mut broker = Broker::new(3006, 0, false).await;
667667

668668
let mut token = client
669669
.publish("hello/world", QoS::AtLeastOnce, false, [1; 1])
@@ -710,7 +710,7 @@ async fn resolve_on_qos1_ack_from_broker() {
710710

711711
#[tokio::test]
712712
async fn resolve_on_qos2_ack_from_broker() {
713-
let options = MqttOptions::new("dummy", "127.0.0.1", 3004);
713+
let options = MqttOptions::new("dummy", "127.0.0.1", 3007);
714714
let (client, mut eventloop) = AsyncClient::new(options, 5);
715715

716716
task::spawn(async move {
@@ -728,7 +728,7 @@ async fn resolve_on_qos2_ack_from_broker() {
728728
}
729729
});
730730

731-
let mut broker = Broker::new(3004, 0, false).await;
731+
let mut broker = Broker::new(3007, 0, false).await;
732732

733733
let mut token = client
734734
.publish("hello/world", QoS::ExactlyOnce, false, [1; 1])

0 commit comments

Comments
 (0)