Skip to content

Commit

Permalink
fix: add self.mocktime = 0 to fix a few tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PastaPastaPasta authored and Munkybooty committed Feb 24, 2022
1 parent 1173cd1 commit b82a67b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/functional/feature_dip3_deterministicmns.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def skip_test_if_missing_module(self):
self.skip_if_no_wallet()

def setup_network(self):
self.mocktime = 0
self.add_nodes(1)
self.start_controller_node()

Expand Down
1 change: 1 addition & 0 deletions test/functional/feature_llmq_is_cl_conflicts.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def on_getdata(self, message):

class LLMQ_IS_CL_Conflicts(DashTestFramework):
def set_test_params(self):
self.mocktime = 0
self.set_dash_test_params(4, 3, fast_dip3_enforcement=True)

def run_test(self):
Expand Down
1 change: 1 addition & 0 deletions test/functional/feature_sporks.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def set_test_params(self):
self.extra_args = [["-sporkkey=cP4EKFyJsHT39LDqgdcB43Y3YXjNyjb5Fuas1GQSeAtjnZWmZEQK"], [], []]

def setup_network(self):
self.mocktime = 0
self.setup_nodes()
# connect only 2 first nodes at start
connect_nodes(self.nodes[0], 1)
Expand Down
1 change: 1 addition & 0 deletions test/functional/p2p_leak.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ def set_test_params(self):
self.extra_args = [['-banscore=' + str(banscore)]]

def setup_network(self):
self.mocktime = 0
self.setup_nodes()

def run_test(self):
Expand Down
1 change: 1 addition & 0 deletions test/functional/rpc_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def set_test_params(self):
self.num_nodes = 2

def setup_network(self):
self.mocktime = 0
self.setup_nodes()
connect_nodes(self.nodes[0], 1)

Expand Down

0 comments on commit b82a67b

Please sign in to comment.