Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions test/integration/multiplexed_upstream_integration_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,11 @@ TEST_P(Http2UpstreamIntegrationTest, ManyLargeSimultaneousRequestWithBufferLimit
}

TEST_P(Http2UpstreamIntegrationTest, ManyLargeSimultaneousRequestWithRandomBackup) {
if (upstreamProtocol() == FakeHttpConnection::Type::HTTP3) {
// TODO(alyssawilk) debug and enable.
return;
}

config_helper_.addFilter(
fmt::format(R"EOF(
name: pause-filter{}
Expand Down
20 changes: 2 additions & 18 deletions test/integration/protocol_integration_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1960,15 +1960,7 @@ name: encode-headers-return-stop-all-filter
ASSERT_TRUE(response->waitForEndStream());
ASSERT_TRUE(response->complete());
// Data is added in encodeData for all protocols, and encodeTrailers for HTTP/2 and above.
int times_added = (upstreamProtocol() == FakeHttpConnection::Type::HTTP1 ||
downstreamProtocol() == Http::CodecClient::Type::HTTP1)
? 1
: 2;
if (downstreamProtocol() == Http::CodecClient::Type::HTTP1 &&
upstreamProtocol() == FakeHttpConnection::Type::HTTP3) {
// TODO(alyssawilk) Figure out why the bytes mismatch with the test expectation below.
return;
}
int times_added = upstreamProtocol() == FakeHttpConnection::Type::HTTP1 ? 1 : 2;
EXPECT_EQ(count_ * size_ + added_decoded_data_size_ * times_added, response->body().size());
}

Expand Down Expand Up @@ -2012,15 +2004,7 @@ name: encode-headers-return-stop-all-filter
ASSERT_TRUE(response->waitForEndStream());
ASSERT_TRUE(response->complete());
// Data is added in encodeData for all protocols, and encodeTrailers for HTTP/2 and above.
int times_added = (upstreamProtocol() == FakeHttpConnection::Type::HTTP1 ||
downstreamProtocol() == Http::CodecClient::Type::HTTP1)
? 1
: 2;
if (downstreamProtocol() == Http::CodecClient::Type::HTTP1 &&
upstreamProtocol() == FakeHttpConnection::Type::HTTP3) {
// TODO(alyssawilk) Figure out why the bytes mismatch with the test expectation below.
return;
}
int times_added = upstreamProtocol() == FakeHttpConnection::Type::HTTP1 ? 1 : 2;
EXPECT_EQ(count_ * size_ + added_decoded_data_size_ * times_added, response->body().size());
}

Expand Down