Skip to content

Commit d25e199

Browse files
Miigonskypjack
authored andcommitted
tests: fix incorrect len of data in Udp ReadSend (skypjack#95)
1 parent ba0a5a1 commit d25e199

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/uvw/udp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ TEST(Udp, ReadSend) {
7979
server->recv();
8080

8181
auto dataSend = std::unique_ptr<char[]>(new char[2]{ 'b', 'c' });
82-
client->send(uvw::Addr{ "127.0.0.1", 4242 }, std::move(dataSend), 1);
82+
client->send(uvw::Addr{ "127.0.0.1", 4242 }, std::move(dataSend), 2);
8383

8484
loop->run();
8585
}

0 commit comments

Comments
 (0)