-
-
Notifications
You must be signed in to change notification settings - Fork 49
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 without network access #560
Comments
Bisected to 9073f19, which modifies the test under question to remove the |
Thank you for reporting this. This is really good to know. The tests should work without having access to the internet, of course. The reason that you're seeing
Cool!
It's actually the same in the test output log (look for
Thank you for the analysis. Now I remember why I used The problem is that I don't want to encourage users to write |
Add a way to use dummy 1.0 exchange rates for testing. closes #560
I'm updating the Numbat package for NixOS from 1.12.0 to 1.13.0 and encountered an issue where the example tests were failing that I struggled to reproduce -- it appeared the hard-coded values for the XKCD 2812 example were being evaluated as NaN (!).
For context, Nix builds all of its packages in a strict sandbox, which includes restricting network access. I was able to reproduce this build error by disabling my networking manually while building:
cargo test --profile release
Test log
This was mildly misleading as the error manifests at runtime either as a runtime error ("Could not load exchange rates") or an unknown identifier while typechecking (with the config option
exchange-rates.fetching-policy = "never"
).The text was updated successfully, but these errors were encountered: