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:
parent
2bb9e39ba6
commit
d4d2ad80dc
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user