| Summary: | Fix failing unit tests | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Technology] MPC | Reporter: | David Green <greensopinion> | ||||||||
| Component: | Install | Assignee: | Benjamin Muskalla <b.muskalla> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | ||||||||||
| Version: | unspecified | ||||||||||
| Target Milestone: | 1.1 | ||||||||||
| Hardware: | All | ||||||||||
| OS: | All | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
David Green
Created attachment 189722 [details]
suggested fix
David, here is a suggested fix. Will take care of ensuring the right encoding is choosen by the build.
Comment on attachment 189722 [details]
suggested fix
Thanks Benjamin, patch applied. Please resolve this defect if the CI build is running with all tests succeeding.
Test is still red, need to investigate. Running the tests locally returns in a green testrun with the patch. Will investigate consider encoding the characters in the unit test string constant (using \u syntax, eg: \u000A). This will result in the correct character in the string without risk of client tooling errors. Created attachment 189761 [details] patch David, just attaching a new patch. I fear bugzilla somehow messes around with the encoding as my local patch has the correct char while the patch in bugzilla is broken. If it doesn't work, you may want to grab the offending char from http://en.wikipedia.org/wiki/%C3%9F and commit it directly. Created attachment 189762 [details]
patch
Good idea :)
committed, pushed. Please resolve if/when the build succeeds. Tests still red, it seems you got the wrong character, see patch #3
<<<<<<< HEAD
assertEquals("Ilja Preu\u00DF", node.getCompanyname());
=======
assertEquals("Ilja Preu\u00C3\u0178", node.getCompanyname());
>>>>>>> 73c3634d8c7569ce184bdf09e99e9a5533372204
ack... take 4 Yep, that did the trick. THanks |