Skip to content

Conversation

@altmind
Copy link

@altmind altmind commented Sep 16, 2019

This fixes:

  1. Failure to start Jooby in JoobyRunner should fail the suite early - otherwise the tests will fail later with cryptic exception org.apache.http.conn.HttpHostConnectException: Connect to localhost:9999 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect

  2. Assets pipeline tests fail if there is no assets.conf in test path. Empty assets.conf seems to fix this.

  3. Relax json tests to accept both "\r\n" and "\n" in output for windows(jackson seems to return platform-dependent line endings)

  4. In some places(css sprites) we should not use system path separator - the css sprites results are URLS, the path separator there is always /.
    In some places (tmpdir), we should use system path separator so our tests dont fail

Before the change: 9 errors, 19 failures https://altio.us/files/Test%20Results%20-%20TestAllorg_jooby.html

After the change: https://altio.us/files/Test%20Results%20-%20TestAllorg_jooby2.html

(I dont know how to fix whoops, sorry)

Copy link
Member

@jknack jknack left a comment

Choose a reason for hiding this comment

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

Minor changes, looks good

" \"name\" : \"pablo\"\n" +
"} ]");
request().get("/members").expect(value ->
assertEquals("[ {\n" +
Copy link
Member

Choose a reason for hiding this comment

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

the .expect is part of Jooby testing code... a better option is to make the change there and not per each test

@jknack jknack added the build label Nov 26, 2019
@jknack jknack added this to the 1.6.5 milestone Nov 26, 2019
@jknack jknack merged commit 16920bd into jooby-project:1.x Nov 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants