mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-22 15:32:24 +00:00
Merge pull request #5558
4ac52e52
functional_tests: fix rare get_output_distribution failure (moneromooo-monero)
This commit is contained in:
commit
42e2ed31ae
1 changed files with 10 additions and 1 deletions
|
@ -213,5 +213,14 @@ class GetOutputDistributionTest():
|
|||
assert d.distribution[h] == 0
|
||||
|
||||
|
||||
class Guard:
|
||||
def __enter__(self):
|
||||
for i in range(4):
|
||||
Wallet(idx = i).auto_refresh(False)
|
||||
def __exit__(self, exc_type, exc_value, traceback):
|
||||
for i in range(4):
|
||||
Wallet(idx = i).auto_refresh(True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
GetOutputDistributionTest().run_test()
|
||||
with Guard() as guard:
|
||||
GetOutputDistributionTest().run_test()
|
||||
|
|
Loading…
Reference in a new issue