Browse Source

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

Daniel Alm 7 years ago
parent
commit
093dd79a4c
1 changed files with 2 additions and 2 deletions
  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))")