File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
shell/platform/darwin/macos/framework/Source Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,11 @@ - (bool)testSetMenu;
2525@implementation FlutterMenuPluginTestObjc
2626
2727- (bool )testSetMenu {
28+ // Workaround to deflake the test.
29+ // See: https://github.com/flutter/flutter/issues/104748#issuecomment-1159336728
30+ NSView * view = [[NSView alloc ] initWithFrame: NSZeroRect ];
31+ view.wantsLayer = YES ;
32+
2833 // Build a simulation of the default main menu.
2934 NSMenu * mainMenu = [[NSMenu alloc ] init ];
3035 NSMenuItem * appNameMenu = [[NSMenuItem alloc ] initWithTitle: @" APP_NAME"
@@ -175,9 +180,7 @@ - (bool)testSetMenu {
175180@end
176181
177182namespace flutter ::testing {
178- // TODO(gspencergoog): Re-enabled when deflaked
179- // https://github.com/flutter/flutter/issues/106589
180- TEST (FlutterMenuPluginTest, DISABLED_TestSetMenu) {
183+ TEST (FlutterMenuPluginTest, TestSetMenu) {
181184 ASSERT_TRUE ([[FlutterMenuPluginTestObjc alloc ] testSetMenu ]);
182185}
183186} // namespace flutter::testing
You can’t perform that action at this time.
0 commit comments