revert a fix for the tests
@@ -15,8 +15,6 @@ from plenum.test.test_node import checkProtocolInstanceSetup, getPrimaryReplica,
# noinspection PyUnresolvedReferences
from plenum.test.view_change.conftest import viewNo
-# noinspection PyUnresolvedReferences
-from plenum.test.view_change.test_view_change import viewChangeDone
# noinspection PyUnresolvedReferences
from plenum.test.conftest import looper, client1, wallet1, clientAndWallet1
@@ -81,6 +79,11 @@ def view_change_done(looper, nodeSet):
ensure_view_change(looper, nodeSet)
ensureElectionsDone(looper=looper, nodes=nodeSet)
+@pytest.fixture(scope='module')
+def view_change_done(looper, nodeSet):
+ ensure_view_change(looper, nodeSet)
+ ensureElectionsDone(looper=looper, nodes=nodeSet)
+
# noinspection PyIncorrectDocstring
def testPrimarySelectionAfterViewChange(looper, nodeSet, ready, primaryReplicas,
catchup_complete_count, view_change_done):
