Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing test when there are spaces in the project path #3578

Merged

Conversation

stejbac
Copy link
Contributor

@stejbac stejbac commented Nov 8, 2019

Use URI.getPath() rather than URL.getFile() to get the absolute path of a test resource, since the latter fails to perform URL decoding. This breaks the tests when the project root contain chars needing %-encoding.

This fixes errors of the following form in (BisqInstallerTest) verifySignature:

java.io.FileNotFoundException: /home/steven/Documents/Java%20Projects/bisq/desktop/build/resources/test/downloadUpdate/F379A1C6.asc (No such file or directory)

freimair
freimair previously approved these changes Nov 8, 2019
Copy link
Contributor

@freimair freimair left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utAck

@ripcurlx
Copy link
Contributor

ripcurlx commented Nov 8, 2019

Use URI.getPath() rather than URL.getFile() to get the absolute path of
a test resource, since the latter fails to perform URL decoding. This
breaks the tests when the project root contain chars needing %-encoding.
@stejbac
Copy link
Contributor Author

stejbac commented Nov 9, 2019

I've now added a GPG key to Github and amended the commit to include a signature.

Copy link
Contributor

@freimair freimair left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants