Wait until node applies all leader's entries
@@ -954,7 +954,7 @@ class TestEndToEndSnapRestoreCluster(unittest.TestCase):
# Restart killed node, check it has full state.
self.n2.start()
self.n2.wait_for_leader()
- self.n2.wait_for_all_fsm()
+ self.n2.wait_for_fsm_index(self.n0.fsm_index())
j = self.n2.query('SELECT count(*) FROM foo', level='none')
self.assertEqual(str(j), "{u'results': [{u'values': [[400]], u'types': [u''], u'columns': [u'count(*)']}]}")
