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

Commit

Permalink
Revert "Test running the macOS engine has no stray logging
Browse files Browse the repository at this point in the history
This reverts commit 5aed693.
  • Loading branch information
jmagman committed Aug 26, 2024
1 parent 3441fc7 commit 2924987
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ @implementation MockableFlutterEngine

// Replace stdout stream buffer with our own.
StreamCapture stdout_capture(&std::cout);
StreamCapture stderr_capture(&std::cerr);

// Launch the test entrypoint.
FlutterEngine* engine = GetFlutterEngine();
Expand All @@ -220,12 +219,9 @@ @implementation MockableFlutterEngine
latch.Wait();

stdout_capture.Stop();
stderr_capture.Stop();

// Verify hello world was written to stdout.
// Check equality to ensure no unexpected stray logging.
EXPECT_EQ(stdout_capture.GetOutput(), "flutter: Hello logging\n");
EXPECT_TRUE(stderr_capture.GetOutput().empty());
EXPECT_TRUE(stdout_capture.GetOutput().find("Hello logging") != std::string::npos);
}

TEST_F(FlutterEngineTest, DISABLED_BackgroundIsBlack) {
Expand Down

0 comments on commit 2924987

Please sign in to comment.