File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -149,8 +149,15 @@ def run_test(self):
149
149
self .nodes [0 ].assert_start_raises_init_error (expected_msg = init_error , extra_args = ['-rpcauth=foo$bar$baz' ])
150
150
151
151
self .log .info ('Check that failure to write cookie file will abort the node gracefully' )
152
- (self .nodes [0 ].chain_path / ".cookie.tmp" ).mkdir ()
152
+ cookie_path = self .nodes [0 ].chain_path / ".cookie"
153
+ cookie_path_tmp = self .nodes [0 ].chain_path / ".cookie.tmp"
154
+ cookie_path_tmp .mkdir ()
153
155
self .nodes [0 ].assert_start_raises_init_error (expected_msg = init_error )
156
+ cookie_path_tmp .rmdir ()
157
+ assert not cookie_path .exists ()
158
+ self .restart_node (0 )
159
+ assert cookie_path .exists ()
160
+ self .stop_node (0 )
154
161
155
162
self .test_rpccookieperms ()
156
163
You can’t perform that action at this time.
0 commit comments