[bisq-network/bisq] Fix failing test when there are spaces in the project path (#3578)

Steven Barclay notifications at github.com
Fri Nov 8 02:33:03 UTC 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)
You can view, comment on, or merge this pull request online at:

  https://github.com/bisq-network/bisq/pull/3578

-- Commit Summary --

  * Fix failing test when there are spaces in the project path

-- File Changes --

    M desktop/src/test/java/bisq/desktop/main/overlays/windows/downloadupdate/BisqInstallerTest.java (12)

-- Patch Links --

https://github.com/bisq-network/bisq/pull/3578.patch
https://github.com/bisq-network/bisq/pull/3578.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/3578
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20191107/4cd621e7/attachment.html>


More information about the bisq-github mailing list