We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75bacab commit 6e28c76Copy full SHA for 6e28c76
test/functional/rpc_users.py
@@ -166,8 +166,15 @@ def run_test(self):
166
self.stop_node(0)
167
168
self.log.info('Check that failure to write cookie file will abort the node gracefully')
169
- (self.nodes[0].chain_path / ".cookie.tmp").mkdir()
+ cookie_path = self.nodes[0].chain_path / ".cookie"
170
+ cookie_path_tmp = self.nodes[0].chain_path / ".cookie.tmp"
171
+ cookie_path_tmp.mkdir()
172
self.nodes[0].assert_start_raises_init_error(expected_msg=init_error)
173
+ cookie_path_tmp.rmdir()
174
+ assert not cookie_path.exists()
175
+ self.restart_node(0)
176
+ assert cookie_path.exists()
177
+ self.stop_node(0)
178
179
self.test_rpccookieperms()
180
0 commit comments