فهرست منبع

Reduce the number of requests in `testUnaryLotsOfRequests` to 10k for faster test runtimes.

Daniel Alm 7 سال پیش
والد
کامیت
093dd79a4c
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      Tests/SwiftGRPCTests/EchoTests.swift

+ 2 - 2
Tests/SwiftGRPCTests/EchoTests.swift

@@ -51,12 +51,12 @@ extension EchoTests {
   }
   
   func testUnaryLotsOfRequests() {
-    // No need to spam the log with 50k lines.
+    // No need to spam the log with 10k lines.
     server.shouldLogRequests = false
     // Sending that many requests at once can sometimes trip things up, it seems.
     client.timeout = 5.0
     let clockStart = clock()
-    let numberOfRequests = 50_000
+    let numberOfRequests = 10_000
     for i in 0..<numberOfRequests {
       if i % 1_000 == 0 && i > 0 {
         print("\(i) requests sent so far, elapsed time: \(Double(clock() - clockStart) / Double(CLOCKS_PER_SEC))")