aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/common/channel_arguments_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/cpp/common/channel_arguments_test.cc')
-rw-r--r--test/cpp/common/channel_arguments_test.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/cpp/common/channel_arguments_test.cc b/test/cpp/common/channel_arguments_test.cc
index 183d2afa78..12fd9784f4 100644
--- a/test/cpp/common/channel_arguments_test.cc
+++ b/test/cpp/common/channel_arguments_test.cc
@@ -209,6 +209,9 @@ TEST_F(ChannelArgumentsTest, SetSocketMutator) {
channel_args_.SetSocketMutator(mutator0);
EXPECT_TRUE(HasArg(arg0));
+ // Exercise the copy constructor because we ran some sanity checks in it.
+ grpc::ChannelArguments new_args{channel_args_};
+
channel_args_.SetSocketMutator(mutator1);
EXPECT_TRUE(HasArg(arg1));
// arg0 is replaced by arg1