Remove buggy assertion in EmbedderTest::CanPostTaskToAllNativeThreads. (flutter/engine#16071)
This was introduced in
ef31000576.
The assertion was originally written to check that more than 4 threads were
managed by the engine (UI, Platform, GPU, IO + ConcurrentWQWorkers). However,
the assertion actually only checked the count of workers in the ConcurrentWQ. As
written, this assertion would fail on all hosts with a hardware concurrency of
less than 4. Remove the assertion. The engine threads count and its assertions
already check callbacks on workers. So this check was incorrect and redundant.
This commit is contained in:
@@ -3936,7 +3936,6 @@ TEST_F(EmbedderTest, CanPostTaskToAllNativeThreads) {
|
||||
|
||||
sync_latch.Wait();
|
||||
|
||||
ASSERT_GT(worker_count, 4u /* three base threads plus workers */);
|
||||
const auto engine_threads_count = worker_count + 4u;
|
||||
|
||||
struct Captures {
|
||||
|
||||
Reference in New Issue
Block a user