test: making assert required#15972
Conversation
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
|
apologies for force push - screwed up local state somehow |
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
|
@alyssawilk Hello, have you solved the ci flakes of |
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
|
@qinggniq sorry about that - ironically the new ASSERT was designed to catch timeouts like this, I just didn't realize that test was already broken! |
|
To confirm, CI is happy with this hash, sorry about the temporary breakage! |
Signed-off-by: Alyssa Wilk <alyssar@chromium.org> Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
- Sync .bazelrc - Update Docker image version in .circleci/config.yml - ci/run_envoy_docker.sh was unchanged - Code changes - Remove `response->waitForEndStream();` from `HttpFilterIntegrationTestBase::getResponse()` in test/server/http_filter_integration_test_base.cc due to envoyproxy/envoy#15972. We can't simply change it to `ASSERT_TRUE(response->waitForEndStream());` in `HttpFilterIntegrationTestBase::getResponse()` since this will cause error: ``` test/server/http_filter_integration_test_base.cc:69:5: error: no viable conversion from returned value of type 'void' to function return type 'Envoy::IntegrationStreamDecoderPtr' (aka 'unique_ptr<Envoy::IntegrationStreamDecoder>') ASSERT_TRUE(response->waitForEndStream()); ``` - Added `ASSERT_TRUE(response->waitForEndStream());` to all places where `HttpFilterIntegrationTestBase::getResponse()` is called in the tests. Signed-off-by: qqustc@gmail.com <qqin@google.com>
Signed-off-by: Alyssa Wilk <alyssar@chromium.org> Signed-off-by: Gokul Nair <gnair@twitter.com>
- Sync .bazelrc - Update Docker image version in .circleci/config.yml - ci/run_envoy_docker.sh was unchanged - Code changes - Remove `response->waitForEndStream();` from `HttpFilterIntegrationTestBase::getResponse()` in test/server/http_filter_integration_test_base.cc due to envoyproxy/envoy#15972. We can't simply change it to `ASSERT_TRUE(response->waitForEndStream());` in `HttpFilterIntegrationTestBase::getResponse()` since this will cause error: ``` test/server/http_filter_integration_test_base.cc:69:5: error: no viable conversion from returned value of type 'void' to function return type 'Envoy::IntegrationStreamDecoderPtr' (aka 'unique_ptr<Envoy::IntegrationStreamDecoder>') ASSERT_TRUE(response->waitForEndStream()); ``` - Added `ASSERT_TRUE(response->waitForEndStream());` to all places where `HttpFilterIntegrationTestBase::getResponse()` is called in the tests. Signed-off-by: qqustc@gmail.com <qqin@google.com> Signed-off-by: William Juan <66322422+wjuan-AFK@users.noreply.github.com>
follow-up on #15812 and envoyproxy/envoy-filter-example#143
Risk Level: n/a (test only)
Testing: n/a
Docs Changes: n/a
Release Notes: n/a