diff --git a/components/codecs/test/readwrite_test.cpp b/components/codecs/test/readwrite_test.cpp
index e506d56d0f77d66d8789ce9ac90a2fe2fa364433..7f776fdf7ca0da9b0a5cb98bec1ed22f874f117b 100644
--- a/components/codecs/test/readwrite_test.cpp
+++ b/components/codecs/test/readwrite_test.cpp
@@ -144,7 +144,7 @@ TEST_CASE( "Write and read - Multiple frames with limit" ) {
 	r.end();
 
 	REQUIRE( n == 2 );
-	REQUIRE( !res );
+	REQUIRE( res );
 }
 
 TEST_CASE( "Write and read - Multiple reads" ) {
@@ -190,7 +190,7 @@ TEST_CASE( "Write and read - Multiple reads" ) {
 	});
 
 	REQUIRE( n == 2 );
-	REQUIRE( !res );
+	REQUIRE( res );
 
 	n = 0;
 	res = r.read(100, [&n](const StreamPacket &rspkt, const Packet &rpkt) {