Skip to content

Conversation

@ken2812221
Copy link
Contributor

@ken2812221 ken2812221 commented Nov 22, 2018

This PR would wait until the .cookie file is readable
Possible fix no. 5 PermissionError in #14446

@maflcko
Copy link
Member

maflcko commented Nov 22, 2018

utACK 0cb4518d355738b2530a66cded2fc4b673ba1c2a

@maflcko maflcko added the Tests label Nov 22, 2018
@laanwj
Copy link
Member

laanwj commented Nov 23, 2018

There's so much polling and waiting in the tests; from a determinism point of view I'd prefer to do this waiting once after starting a node, this is the only time where one'd expect the cookie to possibly not be there yet (maybe make it part of the current poll-after-run loop).

(If the same happens and it's trying to find the cookie after shutdown this is a problem with the test and it shouldn't simply wait 10 seconds. Or if the cookie goes missing while a node is supposed to be running this is a problem with the software that should be detected immediately.)

@promag
Copy link
Contributor

promag commented Nov 23, 2018

@ken2812221
Copy link
Contributor Author

ken2812221 commented Nov 23, 2018

@laanwj Now it would also raise ValueError if the cookie file is not readable. It can be caught in wait_for_rpc_connection()

@maflcko
Copy link
Member

maflcko commented Dec 6, 2018

utACK d6b3790

@maflcko maflcko merged commit d6b3790 into bitcoin:master Dec 7, 2018
maflcko pushed a commit that referenced this pull request Dec 7, 2018
… open the cookie file

d6b3790 tests: check readability of cookie file (Chun Kuan Lee)

Pull request description:

  This PR would wait until the `.cookie` file is readable
  Possible fix no. 5 `PermissionError` in #14446

Tree-SHA512: e7055c7ca26a6eadbbe19e4eef08ffee61cd17de79b30af2f0d090f0ad81ca24815e3c7e034e5e30d47c580bb0b221b3955e9ff2fcec2274fbf7b9232ab0cdc7
@ken2812221 ken2812221 deleted the fix-win-test-perm-deny branch December 8, 2018 01:02
Munkybooty pushed a commit to Munkybooty/dash that referenced this pull request Aug 11, 2021
…e tests open the cookie file

d6b3790 tests: check readability of cookie file (Chun Kuan Lee)

Pull request description:

  This PR would wait until the `.cookie` file is readable
  Possible fix no. 5 `PermissionError` in bitcoin#14446

Tree-SHA512: e7055c7ca26a6eadbbe19e4eef08ffee61cd17de79b30af2f0d090f0ad81ca24815e3c7e034e5e30d47c580bb0b221b3955e9ff2fcec2274fbf7b9232ab0cdc7
Munkybooty pushed a commit to Munkybooty/dash that referenced this pull request Aug 15, 2021
…e tests open the cookie file

d6b3790 tests: check readability of cookie file (Chun Kuan Lee)

Pull request description:

  This PR would wait until the `.cookie` file is readable
  Possible fix no. 5 `PermissionError` in bitcoin#14446

Tree-SHA512: e7055c7ca26a6eadbbe19e4eef08ffee61cd17de79b30af2f0d090f0ad81ca24815e3c7e034e5e30d47c580bb0b221b3955e9ff2fcec2274fbf7b9232ab0cdc7
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants