@@ -64,6 +64,7 @@ TEST(ThroughputOptions, Basic) {
6464 " --maximum-read-size=64KiB" ,
6565 " --read-size-quantum=16KiB" ,
6666 " --target-api-version-path=vN" ,
67+ " --grpc-background-threads=16" ,
6768 });
6869 ASSERT_STATUS_OK (options);
6970 EXPECT_EQ (" test-project" , options->project_id );
@@ -99,6 +100,7 @@ TEST(ThroughputOptions, Basic) {
99100 EXPECT_EQ (std::chrono::seconds (86401 ), options->download_stall_timeout );
100101 EXPECT_EQ (std::chrono::milliseconds (250 ), options->minimum_sample_delay );
101102 EXPECT_EQ (" vN" , options->target_api_version_path .value_or (" " ));
103+ EXPECT_EQ (16 , options->grpc_background_threads .value_or (0 ));
102104}
103105
104106TEST (ThroughputOptions, Description) {
@@ -291,6 +293,16 @@ TEST(ThroughputOptions, Validate) {
291293 " --maximum-read-size=8" ,
292294 " --read-size-quantum=5" ,
293295 }));
296+ EXPECT_FALSE (ParseThroughputOptions ({
297+ " self-test" ,
298+ " --region=r" ,
299+ " --grpc-background-threads=0" ,
300+ }));
301+ EXPECT_FALSE (ParseThroughputOptions ({
302+ " self-test" ,
303+ " --region=r" ,
304+ " --grpc-background-threads=-1" ,
305+ }));
294306}
295307
296308} // namespace
0 commit comments