diff options
| author | Riccardo Spagni <ric@spagni.net> | 2019-06-01 20:21:21 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2019-06-01 20:21:22 +0200 |
| commit | 42e2ed31ae726bc40ff6498bd386be43fc5d9e4f (patch) | |
| tree | 4c82685507ceb6c3e0542c0043e2700b1d12e822 | |
| parent | df20bcdac5af5d5a3e8313d539ee93bd3db88c50 (diff) | |
| parent | 4ac52e523d50a2d6bac0bcab690711cfb1816d83 (diff) | |
| download | monzero-core-42e2ed31ae726bc40ff6498bd386be43fc5d9e4f.tar.gz monzero-core-42e2ed31ae726bc40ff6498bd386be43fc5d9e4f.tar.xz monzero-core-42e2ed31ae726bc40ff6498bd386be43fc5d9e4f.zip | |
Merge pull request #5558
4ac52e52 functional_tests: fix rare get_output_distribution failure (moneromooo-monero)
| -rwxr-xr-x | tests/functional_tests/get_output_distribution.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/functional_tests/get_output_distribution.py b/tests/functional_tests/get_output_distribution.py index 2a0762d5e..061b8dbe2 100755 --- a/tests/functional_tests/get_output_distribution.py +++ b/tests/functional_tests/get_output_distribution.py @@ -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() |
