From c6f6ba9821c0f58b4949ac265e23344c582a9a4b Mon Sep 17 00:00:00 2001 From: ado Date: Sat, 24 Feb 2024 14:37:26 +0100 Subject: [PATCH] [skip ci] Reduce number of runs for no new line at end of data test --- test/test_parser1_1.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/test_parser1_1.cpp b/test/test_parser1_1.cpp index d70b0d9..401d171 100644 --- a/test/test_parser1_1.cpp +++ b/test/test_parser1_1.cpp @@ -581,15 +581,18 @@ void test_no_new_line_at_eof() { test_no_new_line_at_eof_impl( {{1, 2, std::string(i, 'X')}}); - for (size_t j = 0; j < 2 * ss::get_line_initial_buffer_size; ++j) { + for (size_t j = 0; j < 2 * ss::get_line_initial_buffer_size; j += 13) { test_no_new_line_at_eof_impl( {{1, 2, std::string(i, 'X')}, {3, 4, std::string(j, 'Y')}}); + + test_no_new_line_at_eof_impl( + {{1, 2, std::string(j, 'X')}, {3, 4, std::string(i, 'Y')}}); } } } TEST_CASE("test no new line at end of data") { - // test_no_new_line_at_eof(); + test_no_new_line_at_eof(); test_no_new_line_at_eof(); }