Skip to content

Reduce input size in some tests #890

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 14, 2020
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