-
Notifications
You must be signed in to change notification settings - Fork 214
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
Can run Windows integration tests under Wine #1011
Conversation
469c3fa
to
b35ebce
Compare
After boiling down the example to a tiny C program, and ending up enquiring on the wine-devel mailign list, we end up with: piping the wine call through |
b35ebce
to
aa81f70
Compare
My fix apparently did nothing:
... Perhaps it's not in the servant client, but, elsewhere when the network manager is created. |
aa81f70
to
f0aad4a
Compare
f0aad4a
to
e5c5188
Compare
…pen. Seems like the servant-client does not handle IO / Network exceptions that can occur on Windows correctly. So this is a first work-around that. We may want to move this logic to our Jörmungandr http-client itself to actually properly handle this type of failure on every endpoint.
The other errors are not related to the port being available.
(contains wine tests runner)
13fd6fa
to
1193331
Compare
Can we review and merge this now, so that we have the isPortOpen bug fix in master? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors r+
Canceled |
Oops, I accidentally forced push over a fix. bors r+ |
1011: Can run Windows integration tests under Wine r=rvl a=rvl Relates to #703. # Overview - [ ] It's possible to execute `cardano-wallet-jormungandr:test:integration` under Wine. # Comments The tests run on Windows but there is something weird going on with Wine. ![2019-11-12-14-30-53-wine-integration-tests](https://user-images.githubusercontent.com/1019641/68679174-19e1db00-05ab-11ea-9c62-8a30e2807f77.png) To build and run the tests under wine, use: ``` wine $(nix-build release.nix -A x86_64-pc-mingw32.tests.cardano-wallet-jormungandr.integration.x86_64-linux -o integration-windows)/cardano-wallet-jormungandr-2019.11.7/integration.exe ``` 1028: Fix the initial sleep delay in the chain following r=KtorZ a=Anviking # Issue Number #1027 # Overview <!-- Detail in a few bullet points the work accomplished in this PR --> - [x] I have changed the initial sleep delay from `0` to `1 s`. # Comments - Minor downside: we sleep for the initial delay on startup. <!-- Additional comments or screenshots to attach if any --> <!-- Don't forget to: ✓ Self-review your changes to make sure nothing unexpected slipped through ✓ Assign yourself to the PR ✓ Assign one or several reviewer(s) ✓ Once created, link this PR to its corresponding ticket ✓ Acknowledge any changes required to the Wiki --> Co-authored-by: Rodney Lorrimar <[email protected]> Co-authored-by: KtorZ <[email protected]> Co-authored-by: Johannes Lund <[email protected]>
Build succeeded |
Relates to #703.
Overview
cardano-wallet-jormungandr:test:integration
under Wine.Comments
The tests run on Windows but there is something weird going on with Wine.
To build and run the tests under wine, use: