Skip to content

Commit

Permalink
send correct subscription variable
Browse files Browse the repository at this point in the history
  • Loading branch information
alfred2g committed Dec 20, 2023
1 parent 3d245f5 commit 4f6f7bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Mqtt5ClientTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2084,12 +2084,12 @@ static int s_TestMqtt5SharedSubscriptionTest(Aws::Crt::Allocator *allocator, voi
/* Subscribe to test topic */
Mqtt5::Subscription subscription(sharedTopicFilter, Mqtt5::QOS::AWS_MQTT5_QOS_AT_MOST_ONCE, allocator);
std::shared_ptr<Mqtt5::SubscribePacket> subscribe = std::make_shared<Mqtt5::SubscribePacket>(allocator);
subscribe->WithSubscription(subscription);
subscribe->WithSubscription(std::move(subscription));

/* Subscribe to test topic */
Mqtt5::Subscription subscription2(sharedTopicFilter, Mqtt5::QOS::AWS_MQTT5_QOS_AT_MOST_ONCE, allocator);
std::shared_ptr<Mqtt5::SubscribePacket> subscribe2 = std::make_shared<Mqtt5::SubscribePacket>(allocator);
subscribe2->WithSubscription(subscription);
subscribe2->WithSubscription(std::move(subscription2));

std::promise<void> suback;
auto onSubAck = [&](int, std::shared_ptr<SubAckPacket>) { suback.set_value(); };
Expand Down

0 comments on commit 4f6f7bc

Please sign in to comment.