Unverified Commit 72bd2470 authored by ckie's avatar ckie
Browse files

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
parent 1b1f5064
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;