Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
uchenily committed May 9, 2024
1 parent 90116e1 commit 6e5dc10
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/gtests/gtest_tcp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ using namespace uvio::sync;
TEST(TestTcpListener, ListenAndAccept) {
Latch latch(3);

auto server = [&latch]() -> Task<> {
auto server = [](Latch &latch) -> Task<> {
std::array<char, 64> buf{};

auto listener = TcpListener();
Expand All @@ -25,7 +25,7 @@ TEST(TestTcpListener, ListenAndAccept) {
co_await stream.write(buf.data());
};

auto client = [&latch]() -> Task<> {
auto client = [](Latch &latch) -> Task<> {
std::array<char, 64> buf{};

co_await latch.arrive_and_wait();
Expand All @@ -40,7 +40,7 @@ TEST(TestTcpListener, ListenAndAccept) {
co_await latch.arrive_and_wait();
};

spawn(server());
spawn(client());
spawn(server(latch));
spawn(client(latch));
block_on(wait(latch));
}
3 changes: 3 additions & 0 deletions uvio/sync.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#pragma once

#include "uvio/sync/latch.hpp"

0 comments on commit 6e5dc10

Please sign in to comment.