Skip to content

Commit

Permalink
test: replace require with check
Browse files Browse the repository at this point in the history
  • Loading branch information
variar committed Nov 14, 2024
1 parent e16629a commit c4da03e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/ui/logdata_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ TEST_CASE( "Logdata reading changing file", "[logdata]" )
waitUiState( [ &logData ] { return logData.getNbLine() == 401_lcount; } );

// Check we have a bigger file
REQUIRE( changedSpy.count() >= 1 );
CHECK( changedSpy.count() >= 1 );
REQUIRE( logData.getNbLine() == 401_lcount );
REQUIRE( logData.getMaxLength() == LineLength( SL_LINE_LENGTH ) );
REQUIRE( logData.getFileSize()
Expand All @@ -189,7 +189,7 @@ TEST_CASE( "Logdata reading changing file", "[logdata]" )
waitUiState( [ &logData ] { return logData.getNbLine() == 421_lcount; } );

// Check we have a bigger file
REQUIRE( changedSpy.count() >= 2 );
CHECK( changedSpy.count() >= 2 );
REQUIRE( logData.getNbLine() == 421_lcount );
REQUIRE( logData.getMaxLength() == LineLength( SL_LINE_LENGTH ) );
REQUIRE( logData.getFileSize()
Expand All @@ -204,7 +204,7 @@ TEST_CASE( "Logdata reading changing file", "[logdata]" )
waitUiState( [ &logData ] { return logData.getNbLine() == 0_lcount; } );

// Check we have an empty file
REQUIRE( changedSpy.count() >= 3 );
CHECK( changedSpy.count() >= 3 );
REQUIRE( logData.getNbLine() == 0_lcount );
REQUIRE( logData.getMaxLength().get() == 0 );
REQUIRE( logData.getFileSize() == 0LL );
Expand Down

0 comments on commit c4da03e

Please sign in to comment.