From 75bddc6a8fb8257d4397837b0f07385167fb5758 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 28 Feb 2025 01:08:52 +0100 Subject: [PATCH] beets: disable flaky tests on darwin --- pkgs/tools/audio/beets/common.nix | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/audio/beets/common.nix b/pkgs/tools/audio/beets/common.nix index 145055caf6e0..ed070d8fb4d5 100644 --- a/pkgs/tools/audio/beets/common.nix +++ b/pkgs/tools/audio/beets/common.nix @@ -1,5 +1,6 @@ { lib, + stdenv, src, version, fetchpatch, @@ -166,10 +167,19 @@ python3Packages.buildPythonApplication { __darwinAllowLocalNetworking = true; - disabledTestPaths = disabledTestPaths ++ [ - # touches network - "test/plugins/test_aura.py" - ]; + disabledTestPaths = + disabledTestPaths + ++ [ + # touches network + "test/plugins/test_aura.py" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # Flaky: several tests fail randomly with: + # if not self._poll(timeout): + # raise Empty + # _queue.Empty + "test/plugins/test_player.py" + ]; disabledTests = disabledTests ++ [ # beets.ui.UserError: unknown command 'autobpm' "test/plugins/test_autobpm.py::TestAutoBPMPlugin::test_import"