Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Tests/GRPCTests/FunctionalTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class FunctionalTestsInsecureTransport: EchoTestCaseBase {
}

var lotsOfStrings: [String] {
return (0..<5_000).map {
return (0..<500).map {
String(describing: $0)
}
}
Expand Down Expand Up @@ -61,7 +61,7 @@ class FunctionalTestsInsecureTransport: EchoTestCaseBase {

// Sending that many requests at once can sometimes trip things up, it seems.
let clockStart = clock()
let numberOfRequests = 2_000
let numberOfRequests = 200

// Due to https://github.com/apple/swift-nio-http2/issues/87#issuecomment-483542401 we need to
// limit the number of active streams. The default in NIOHTTP2 is 100, so we'll use it too.
Expand Down Expand Up @@ -90,7 +90,7 @@ class FunctionalTestsInsecureTransport: EchoTestCaseBase {
get.status.map { $0.code }.assertEqual(.ok, fulfill: statusExpectation)
}

if upperBound % 1_000 == 0 {
if upperBound % 100 == 0 {
print("\(upperBound) requests sent so far, elapsed time: \(Double(clock() - clockStart) / Double(CLOCKS_PER_SEC))")
}

Expand Down