Fix BraveHistoryURLProviderTest leaks (#33739)

This commit is contained in:
Mikhail
2026-02-10 10:22:59 -03:00
committed by GitHub
parent 9121b475ec
commit 6dad9e8886
@@ -69,6 +69,9 @@ class BraveHistoryURLProviderTest : public testing::Test,
void TearDown() override {
autocomplete_ = nullptr;
client_.reset();
// Process InMemoryURLIndex pending tasks to avoid false-positive
// memory leaks on shutdown (LSan).
task_environment_.RunUntilIdle();
}
// Does the real setup.