File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -252,6 +252,8 @@ DOCTEST_TEST_CASE("Concurrent kv access" * doctest::test_suite("concurrency"))
252
252
DOCTEST_TEST_CASE (
253
253
" get_version_of_previous_write ordering" * doctest::test_suite (" concurrency" ))
254
254
{
255
+ ccf::logger::config::level () = LoggerLevel::INFO;
256
+
255
257
// Many threads attempt to produce a chain of transactions pointing at the
256
258
// previous write to a single key, at that key.
257
259
ccf::kv::Store kv_store;
@@ -315,7 +317,7 @@ DOCTEST_TEST_CASE(
315
317
316
318
std::vector<std::thread> threads;
317
319
constexpr auto num_threads = 64 ;
318
- constexpr auto writes_per_thread = 10 ;
320
+ constexpr auto writes_per_thread = 100 ;
319
321
for (size_t i = 0 ; i < num_threads; ++i)
320
322
{
321
323
threads.emplace_back ([&]() {
@@ -331,6 +333,7 @@ DOCTEST_TEST_CASE(
331
333
thread.join ();
332
334
}
333
335
336
+ LOG_INFO_FMT (" Found {} conflicts" , conflict_count);
334
337
DOCTEST_CHECK (conflict_count > 0 );
335
338
constexpr auto last_write_version = num_threads * writes_per_thread;
336
339
You can’t perform that action at this time.
0 commit comments