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:
ckie 2023-01-25 16:45:34 +02:00
parent 1b1f50645a
commit 72bd24702b
No known key found for this signature in database
GPG key ID: 13E79449C0525215

View file

@ -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;