Commit 64bee419 authored by Oleh Lamzin's avatar Oleh Lamzin Committed by Commit Bot

Use FlushForTesting in cros_healthd metric provider test

Use new method ServiceConnection::FlushForTesting instead of
RunUntilIdle.

Change-Id: I032a428465ac661905ac3cfe466a898c4ca015bc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2398722Reviewed-by: default avatarIlya Sherman <isherman@chromium.org>
Commit-Queue: Oleh Lamzin <lamzin@google.com>
Cr-Commit-Position: refs/heads/master@{#805655}
parent 46c945cf
......@@ -71,9 +71,8 @@ class CrosHealthdMetricsProviderTest : public testing::Test {
~CrosHealthdMetricsProviderTest() override {
chromeos::CrosHealthdClient::Shutdown();
// Wait for cros_healthd::ServiceConnection to observe the destruction of
// the client.
base::RunLoop().RunUntilIdle();
// Wait for ServiceConnection to observe the destruction of the client.
chromeos::cros_healthd::ServiceConnection::GetInstance()->FlushForTesting();
}
protected:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment