Changed name persistant file to 'state.json.gz'

Changed filename from persistent.state to state.json.gz. Now the
file extension matches the content.
This commit is contained in:
Jens Luetjen 2016-03-31 20:24:31 +02:00
parent 2bb9e39ba6
commit d4d2ad80dc
2 changed files with 3 additions and 3 deletions

View File

@ -174,7 +174,7 @@ class Core(
Save current state to disk.
"""
file_name = os.path.join(self._get_data_dir(), 'persistent.state')
file_name = os.path.join(self._get_data_dir(), b'state.json.gz')
logger.info('Save state to %s', file_name)
data = {}
@ -205,7 +205,7 @@ class Core(
:type coverage: list of string (see above)
"""
file_name = os.path.join(self._get_data_dir(), 'persistent.state')
file_name = os.path.join(self._get_data_dir(), b'state.json.gz')
logger.info('Load state from %s', file_name)
data = storage.load(file_name)

View File

@ -78,7 +78,7 @@ class CoreActorExportRestoreTest(unittest.TestCase):
# TODO: implement meaningful test
def test_delete_state_file_on_restore(self):
file_path = os.path.join(self.temp_dir, 'core', 'persistent.state')
file_path = os.path.join(self.temp_dir, 'core', 'state.json.gz')
data = {}
storage.save(file_path, data)