Sfoglia il codice sorgente

Changd thread count in ClientStop

yhirose 5 anni fa
parent
commit
34282c79a9
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      test/test.cc

+ 1 - 1
test/test.cc

@@ -1767,7 +1767,7 @@ TEST_F(ServerTest, GetStreamedEndless) {
 
 TEST_F(ServerTest, ClientStop) {
   std::vector<std::thread> threads;
-  for (auto i = 0; i < 8; i++) {
+  for (auto i = 0; i < 3; i++) {
     threads.emplace_back(thread([&]() {
       auto res = cli_.Get("/streamed-cancel",
                           [&](const char *, uint64_t) { return true; });