Merge pull request #5562
13864702
functional_tests: fix rare get_output_distribution failure (moneromooo-monero)
This commit is contained in:
commit
2f5efc7f59
|
@ -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__':
|
||||
with Guard() as guard:
|
||||
GetOutputDistributionTest().run_test()
|
||||
|
|
Loading…
Reference in New Issue