Skip to content

Commit

Permalink
fix flaky tests (#20169)
Browse files Browse the repository at this point in the history
  • Loading branch information
supermassive authored Sep 19, 2023
1 parent 329cdf8 commit 4fed991
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/brave_wallet/browser/eth_tx_manager_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include "brave/components/brave_wallet/browser/json_rpc_service.h"
#include "brave/components/brave_wallet/browser/keyring_service.h"
#include "brave/components/brave_wallet/browser/pref_names.h"
#include "brave/components/brave_wallet/browser/test_utils.h"
#include "brave/components/brave_wallet/browser/tx_service.h"
#include "brave/components/brave_wallet/browser/tx_storage_delegate.h"
#include "brave/components/brave_wallet/browser/tx_storage_delegate_impl.h"
Expand Down Expand Up @@ -269,6 +270,7 @@ class EthTxManagerUnitTest : public testing::Test {
tx_service_ = std::make_unique<TxService>(
json_rpc_service_.get(), nullptr, keyring_service_.get(), GetPrefs(),
temp_dir_.GetPath(), base::SequencedTaskRunner::GetCurrentDefault());
WaitForTxStorageDelegateInitialized(tx_service_->GetDelegateForTesting());

keyring_service_->CreateWallet("testing123", base::DoNothing());
base::RunLoop().RunUntilIdle();
Expand Down
1 change: 1 addition & 0 deletions components/brave_wallet/browser/fil_tx_manager_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ class FilTxManagerUnitTest : public testing::Test {
tx_service_ = std::make_unique<TxService>(
json_rpc_service_.get(), nullptr, keyring_service_.get(), &prefs_,
temp_dir_.GetPath(), base::SequencedTaskRunner::GetCurrentDefault());
WaitForTxStorageDelegateInitialized(tx_service_->GetDelegateForTesting());

keyring_service_->CreateWallet(kMnemonicDivideCruise, "brave",
base::DoNothing());
Expand Down

0 comments on commit 4fed991

Please sign in to comment.