Skip to content

Commit

Permalink
minor fix for integration test (envoyproxy#12212)
Browse files Browse the repository at this point in the history
Signed-off-by: Asra Ali <[email protected]>
  • Loading branch information
asraa authored Jul 24, 2020
1 parent ee46ce7 commit 6434bbd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/integration/fake_upstream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,11 @@ FakeHttpConnection::FakeHttpConnection(
http1_settings.enable_trailers_ = true;
Http::Http1::CodecStats& stats = fake_upstream.http1CodecStats();
#ifdef ENVOY_USE_LEGACY_CODECS_IN_INTEGRATION_TESTS
codec_ = std::make_unique<TestHttp1ServerConnectionImpl>(
codec_ = std::make_unique<Legacy::TestHttp1ServerConnectionImpl>(
shared_connection_.connection(), stats, *this, http1_settings, max_request_headers_kb,
max_request_headers_count, headers_with_underscores_action);
#else
codec_ = std::make_unique<Legacy::TestHttp1ServerConnectionImpl>(
codec_ = std::make_unique<TestHttp1ServerConnectionImpl>(
shared_connection_.connection(), stats, *this, http1_settings, max_request_headers_kb,
max_request_headers_count, headers_with_underscores_action);
#endif
Expand All @@ -303,11 +303,11 @@ FakeHttpConnection::FakeHttpConnection(
http2_options.set_allow_metadata(true);
Http::Http2::CodecStats& stats = fake_upstream.http2CodecStats();
#ifdef ENVOY_USE_LEGACY_CODECS_IN_INTEGRATION_TESTS
codec_ = std::make_unique<Http::Http2::ServerConnectionImpl>(
codec_ = std::make_unique<Http::Legacy::Http2::ServerConnectionImpl>(
shared_connection_.connection(), *this, stats, http2_options, max_request_headers_kb,
max_request_headers_count, headers_with_underscores_action);
#else
codec_ = std::make_unique<Http::Legacy::Http2::ServerConnectionImpl>(
codec_ = std::make_unique<Http::Http2::ServerConnectionImpl>(
shared_connection_.connection(), *this, stats, http2_options, max_request_headers_kb,
max_request_headers_count, headers_with_underscores_action);
#endif
Expand Down

0 comments on commit 6434bbd

Please sign in to comment.