Unverified Commit 9cb8feca authored by Alex James's avatar Alex James
Browse files

delta: run tests with 1 thread

One of the tests (test_env_parsing_with_pager_set_to_bat) sets an
environment variable, which can be flaky with multiple threads (see
https://github.com/dandavison/delta/issues/1660). Work around this by
running the tests with 1 thread until this is fixed upstream.
parent 4854bac6
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -44,6 +44,11 @@ rustPlatform.buildRustPackage rec {
      etc/completion/completion.{bash,fish,zsh}
  '';

  # test_env_parsing_with_pager_set_to_bat sets environment variables,
  # which can be flaky with multiple threads:
  # https://github.com/dandavison/delta/issues/1660
  dontUseCargoParallelTests = true;

  checkFlags = lib.optionals stdenv.isDarwin [
    "--skip=test_diff_same_non_empty_file"
  ];