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

Content-length optimization #773

Merged
merged 3 commits into from
Jun 12, 2019
Merged

Conversation

spericas
Copy link
Member

Added new flag to DataChunk to mark them as immutable. Updated and created some new tests.

Signed-off-by: Santiago Pericas-Geertsen [email protected]

… mark them as immutable. Updated and created some new tests.

Signed-off-by: Santiago Pericas-Geertsen <[email protected]>
* @throws Exception in case of an error
*/
private static void startServer(int port) throws Exception {
webServer = WebServer.create(
Copy link
Contributor

Choose a reason for hiding this comment

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

I know this looks inspired from PlainTest, but @tomas-langer is advocating for not starting actual servers in unit tests in favor of mocking.

IIRC the idea is to have tests that do start real servers to be under /tests/functional or /tests/integration.
I don't see much under /tests at the moment, so this would mean more work to get this going.

Perhaps you can get a pass for now until we setup the integration tests properly.
Thoughts ?

Copy link
Member Author

Choose a reason for hiding this comment

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

I struggle with this all the time. Recently, for another issue, I created a new functional test called context-propagation, but this isn't a very efficient way of writing tests because, as of now, every functional test is there for essentially one purpose. If we had something more generic (like webserver) that we could easily extend, it would be a much more efficient way of writing tests.

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree, we need to setup a module under tests for the webserver integration / functional tests.

spericas added 2 commits June 12, 2019 10:10
Signed-off-by: Santiago Pericas-Geertsen <[email protected]>
Signed-off-by: Santiago Pericas-Geertsen <[email protected]>
@spericas spericas self-assigned this Jun 12, 2019
@spericas spericas added the enhancement New feature or request label Jun 12, 2019
@spericas spericas merged commit 4c3d6ce into helidon-io:master Jun 12, 2019
@spericas spericas changed the title WIP: Content-length optimization Content-length optimization Jun 12, 2019
@olotenko
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants