1
0

tests: try to eliminate random failures from mpp_split tests

closes: #7062
This commit is contained in:
SomberNight
2021-02-24 12:54:43 +01:00
parent 228c4b4597
commit a9d0e3fca9
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
import random
import electrum.mpp_split as mpp_split # side effect for PART_PENALTY
from electrum.lnutil import NoPathFound
@@ -9,6 +11,8 @@ PART_PENALTY = mpp_split.PART_PENALTY
class TestMppSplit(ElectrumTestCase):
def setUp(self):
super().setUp()
# to make tests reproducible:
random.seed(0)
# undo side effect
mpp_split.PART_PENALTY = PART_PENALTY
self.channels_with_funds = {