Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit ccfc7e5

Browse files
Add missing reply in C++ MethodChannel unit test (#20420)
The test handler wasn't replying, which logged an error message during the unit test. Fixes flutter/flutter#62560
1 parent 6381b15 commit ccfc7e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

shell/platform/common/cpp/client_wrapper/method_channel_unittests.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ TEST(MethodChannelTest, Registration) {
6767
// result.
6868
EXPECT_EQ(call.method_name(), method_name);
6969
EXPECT_NE(result, nullptr);
70+
result->Success();
7071
});
7172
EXPECT_EQ(messenger.last_message_handler_channel(), channel_name);
7273
EXPECT_NE(messenger.last_message_handler(), nullptr);

0 commit comments

Comments
 (0)