|
|
|
@ -18,6 +18,7 @@ |
|
|
|
|
|
|
|
|
|
#include <memory> |
|
|
|
|
|
|
|
|
|
#include "absl/strings/str_cat.h" |
|
|
|
|
#include "gmock/gmock.h" |
|
|
|
|
#include "gtest/gtest.h" |
|
|
|
|
|
|
|
|
@ -28,6 +29,7 @@ |
|
|
|
|
#include "src/core/lib/gprpp/time.h" |
|
|
|
|
#include "test/core/end2end/end2end_tests.h" |
|
|
|
|
#include "test/core/end2end/tests/cancel_test_helpers.h" |
|
|
|
|
#include "test/core/util/test_config.h" |
|
|
|
|
|
|
|
|
|
namespace grpc_core { |
|
|
|
|
|
|
|
|
@ -82,15 +84,18 @@ CORE_END2END_TEST(CoreClientChannelTest, DeadlineAfterAcceptWithServiceConfig) { |
|
|
|
|
InitServer(ChannelArgs()); |
|
|
|
|
InitClient(ChannelArgs().Set( |
|
|
|
|
GRPC_ARG_SERVICE_CONFIG, |
|
|
|
|
"{\n" |
|
|
|
|
" \"methodConfig\": [ {\n" |
|
|
|
|
" \"name\": [\n" |
|
|
|
|
" { \"service\": \"service\", \"method\": \"method\" },\n" |
|
|
|
|
" { \"service\": \"unused\" }\n" |
|
|
|
|
" ],\n" |
|
|
|
|
" \"timeout\": \"5s\"\n" |
|
|
|
|
" } ]\n" |
|
|
|
|
"}")); |
|
|
|
|
absl::StrCat( |
|
|
|
|
"{\n" |
|
|
|
|
" \"methodConfig\": [ {\n" |
|
|
|
|
" \"name\": [\n" |
|
|
|
|
" { \"service\": \"service\", \"method\": \"method\" },\n" |
|
|
|
|
" { \"service\": \"unused\" }\n" |
|
|
|
|
" ],\n" |
|
|
|
|
" \"timeout\": \"", |
|
|
|
|
5 * grpc_test_slowdown_factor(), |
|
|
|
|
"s\"\n" |
|
|
|
|
" } ]\n" |
|
|
|
|
"}"))); |
|
|
|
|
CancelAfterAccept(*this, std::make_unique<DeadlineCancellationMode>(), |
|
|
|
|
Duration::Infinity()); |
|
|
|
|
} |
|
|
|
|