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

Tests fail when run in parallel #204

Closed
mgorny opened this issue Aug 28, 2017 · 1 comment
Closed

Tests fail when run in parallel #204

mgorny opened this issue Aug 28, 2017 · 1 comment
Milestone

Comments

@mgorny
Copy link
Contributor

mgorny commented Aug 28, 2017

I can reliably get either integration or connector_http tests to fail when run in parallel, e.g.:

$ ctest -j 9
Test project /home/mgorny/git/libjson-rpc-cpp/_build
    Start 9: all
    Start 6: connector_filedescriptor
    Start 4: connector_http
    Start 7: stubgen
    Start 1: client
    Start 3: common
    Start 8: integration
    Start 5: connector_unixdomainsocket
    Start 2: server
1/9 Test #8: integration ......................***Failed    0.19 sec
2/9 Test #3: common ...........................   Passed    0.32 sec
3/9 Test #7: stubgen ..........................   Passed    0.52 sec
4/9 Test #2: server ...........................   Passed    0.49 sec
5/9 Test #5: connector_unixdomainsocket .......   Passed    0.49 sec
6/9 Test #1: client ...........................   Passed    0.52 sec
7/9 Test #4: connector_http ...................   Passed    2.05 sec
8/9 Test #6: connector_filedescriptor .........   Passed    4.26 sec
9/9 Test #9: all ..............................   Passed    5.18 sec

89% tests passed, 1 tests failed out of 9

Total Test time (real) =   5.18 sec

The following tests FAILED:
	  8 - integration (Failed)
Errors while running CTest
$ ctest -j 9
Test project /home/mgorny/git/libjson-rpc-cpp/_build
    Start 8: integration
    Start 9: all
    Start 6: connector_filedescriptor
    Start 4: connector_http
    Start 7: stubgen
    Start 1: client
    Start 5: connector_unixdomainsocket
    Start 2: server
    Start 3: common
1/9 Test #8: integration ......................   Passed    0.73 sec
2/9 Test #2: server ...........................   Passed    0.71 sec
3/9 Test #7: stubgen ..........................   Passed    0.82 sec
4/9 Test #1: client ...........................   Passed    0.81 sec
5/9 Test #5: connector_unixdomainsocket .......   Passed    0.81 sec
6/9 Test #3: common ...........................   Passed    0.80 sec
7/9 Test #4: connector_http ...................***Failed    1.02 sec
8/9 Test #6: connector_filedescriptor .........   Passed    4.33 sec
9/9 Test #9: all ..............................   Passed    5.56 sec

89% tests passed, 1 tests failed out of 9

Total Test time (real) =   5.56 sec

The following tests FAILED:
	  4 - connector_http (Failed)
Errors while running CTest

@cinemast
Copy link
Owner

Thanks for detecting that. I never tried running them in parallel but I guess by using different ports und filedescriptors it's fixable.

@cinemast cinemast added this to the 1.0.1 milestone Aug 28, 2017
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

No branches or pull requests

2 participants