mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
step-ca: fix flaky test parallelism
step-ca seems to run some tests using the global `localhost` interface inside the build sandbox, and on big x86_64-linux machines we've observed they occasionally fail. This restricts the tests to one core. https://hydra.nixos.org/build/206729862
This commit is contained in:
parent
1b1f50645a
commit
72bd24702b
1 changed files with 3 additions and 0 deletions
|
@ -46,6 +46,9 @@ buildGoModule rec {
|
|||
# Tests start http servers which need to bind to local addresses:
|
||||
# panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: bind: operation not permitted
|
||||
__darwinAllowLocalNetworking = true;
|
||||
# Tests need to run in a reproducible order, otherwise they run unreliably on
|
||||
# (at least) x86_64-linux.
|
||||
checkFlags = [ "-p 1" ];
|
||||
|
||||
passthru.tests.step-ca = nixosTests.step-ca;
|
||||
|
||||
|
|
Loading…
Reference in a new issue