Skip to content
Snippets Groups Projects
Commit 87939ee4 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Fix reader unit tests

parent f48473ae
Branches main
No related tags found
1 merge request!127Implements #196 stream capturing
Pipeline #15277 passed
...@@ -144,7 +144,7 @@ TEST_CASE( "Write and read - Multiple frames with limit" ) { ...@@ -144,7 +144,7 @@ TEST_CASE( "Write and read - Multiple frames with limit" ) {
r.end(); r.end();
REQUIRE( n == 2 ); REQUIRE( n == 2 );
REQUIRE( !res ); REQUIRE( res );
} }
TEST_CASE( "Write and read - Multiple reads" ) { TEST_CASE( "Write and read - Multiple reads" ) {
...@@ -190,7 +190,7 @@ TEST_CASE( "Write and read - Multiple reads" ) { ...@@ -190,7 +190,7 @@ TEST_CASE( "Write and read - Multiple reads" ) {
}); });
REQUIRE( n == 2 ); REQUIRE( n == 2 );
REQUIRE( !res ); REQUIRE( res );
n = 0; n = 0;
res = r.read(100, [&n](const StreamPacket &rspkt, const Packet &rpkt) { res = r.read(100, [&n](const StreamPacket &rspkt, const Packet &rpkt) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment