[coll] Improve column split tests with named threads. (#10735)

This commit is contained in:
Jiaming Yuan
2024-08-24 12:43:47 +08:00
committed by GitHub
parent 55aef8f546
commit fd0138c91c
10 changed files with 72 additions and 37 deletions

View File

@@ -21,7 +21,7 @@ TEST(ThreadPool, Basic) {
// 4 is an invalid value, it's only possible to set it by bypassing the parameter
// validation.
ASSERT_NE(orig, GlobalConfigThreadLocalStore::Get()->verbosity);
ThreadPool pool{n_threads, [config = *GlobalConfigThreadLocalStore::Get()] {
ThreadPool pool{StringView{"test"}, n_threads, [config = *GlobalConfigThreadLocalStore::Get()] {
*GlobalConfigThreadLocalStore::Get() = config;
}};
GlobalConfigThreadLocalStore::Get()->verbosity = orig; // restore