fix tests

Summary: related to T12015

Reviewers: ivica

Reviewed By: ivica

Subscribers: miljen, iljazovic

Differential Revision: https://repo.mireo.local/D26693
This commit is contained in:
Korina Šimičević
2023-11-24 11:50:47 +01:00
parent b4f4cd0047
commit 0eaa9d7235
7 changed files with 40 additions and 53 deletions

View File

@@ -165,9 +165,9 @@ int main(int argc, char** argv) {
.brokers("mqtt.broker", 1883)
.run();
asio::co_spawn(ioc.get_executor(), coroutine(c), asio::detached);
co_spawn(ioc.get_executor(), coroutine(c), asio::detached);
// or...
asio::co_spawn(ioc.get_executor(), nothrow_coroutine(c), asio::detached);
co_spawn(ioc.get_executor(), nothrow_coroutine(c), asio::detached);
ioc.run();
}

View File

@@ -46,7 +46,7 @@ int main() {
asio::io_context ioc;
// Spawn the coroutine.
asio::co_spawn(ioc.get_executor(), client_publisher(ioc), asio::detached);
co_spawn(ioc.get_executor(), client_publisher(ioc), asio::detached);
// Start the execution.
ioc.run();

View File

@@ -71,7 +71,7 @@ int main() {
asio::io_context ioc;
// Spawn the coroutine.
asio::co_spawn(ioc, client_receiver(ioc), asio::detached);
co_spawn(ioc, client_receiver(ioc), asio::detached);
// Start the execution.
ioc.run();