diff options
| author | Artyom V. Poptsov <poptsov.artyom@gmail.com> | 2026-05-11 07:03:42 +0300 |
|---|---|---|
| committer | Artyom V. Poptsov <poptsov.artyom@gmail.com> | 2026-05-11 07:06:41 +0300 |
| commit | 0f6b97e1a850d85c223bac953dc452f0c2894791 (patch) | |
| tree | 90afeed3e754e15d1dd89669dd010c65be7a9f41 | |
| parent | c47216bede68c4f96bcb82c0ad20f881c2f15518 (diff) | |
gnu: go-github-com-syncthing-notify: Fix tests.
* gnu/packages/golang-xyz.scm (go-github-com-syncthing-notify): Fix tests.
[arguments]<#:phases>: Disable "TestRecreated" test as it sometimes fails due
to timeout.
Change-Id: I2cf2bf5c9822540ef05878edb43e7e82da88c140
| -rw-r--r-- | gnu/packages/golang-xyz.scm | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 6b9884aae2..34d64f0c8d 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -47,7 +47,7 @@ ;;; Copyright © 2023 Timo Wilken <guix@twilken.net> ;;; Copyright © 2023 Wilko Meyer <w@wmeyer.eu> ;;; Copyright © 2023 conses <contact@conses.eu> -;;; Copyright © 2024 Artyom V. Poptsov <poptsov.artyom@gmail.com> +;;; Copyright © 2024, 2026 Artyom V. Poptsov <poptsov.artyom@gmail.com> ;;; Copyright © 2024 Brian Kubisiak <brian@kubisiak.com> ;;; Copyright © 2024 Herman Rimm <herman@rimm.ee> ;;; Copyright © 2024 Jean Simard <woshilapin@tuziwo.info> @@ -25544,7 +25544,17 @@ suffix comparison, rather than the string-based or tree-based approaches.") (arguments (list #:parallel-tests? #f - #:import-path "github.com/syncthing/notify")) + #:import-path "github.com/syncthing/notify" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'disable-failing-tests + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (substitute* "notify_test.go" + ;; XXX: Sometimes this test fails due to timeout. + ;; Increasing the timeout from 5s to 10s does not help. + ;; See <https://github.com/rjeczalik/notify/issues/227> + (("TestRecreated") "OffTestRecreated")))))))) (propagated-inputs (list go-golang-org-x-sys)) (home-page "https://github.com/syncthing/notify") |
