me
/
guix
Archived
1
0
Fork 0

gnu: go-github-com-yuin-goldmark: Extend the test timeout.

* gnu/packages/golang-build.scm (go-github-com-yuin-goldmark)
[arguments]: Adjust the custom 'check phase to also extend the test
timeout to allow the tests to pass on slower machines.

Change-Id: Iba98545b73a7fdd5c6c831069a5286521aeeceff
master
Efraim Flashner 2024-07-21 17:17:17 +03:00
parent 971e874f4e
commit 504d5079d7
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 5 additions and 1 deletions

View File

@ -2,7 +2,7 @@
;;; Copyright © 2019 Brian Leung <bkleung89@gmail.com> ;;; Copyright © 2019 Brian Leung <bkleung89@gmail.com>
;;; Copyright © 2019, 2020 Leo Famulari <leo@famulari.name> ;;; Copyright © 2019, 2020 Leo Famulari <leo@famulari.name>
;;; Copyright © 2020 Danny Milosavljevic <dannym@scratchpost.org> ;;; Copyright © 2020 Danny Milosavljevic <dannym@scratchpost.org>
;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2020, 2024 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2020 HiPhish <hiphish@posteo.de> ;;; Copyright © 2020 HiPhish <hiphish@posteo.de>
;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com> ;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com>
;;; Copyright © 2020 Ryan Prior <rprior@protonmail.com> ;;; Copyright © 2020 Ryan Prior <rprior@protonmail.com>
@ -80,6 +80,10 @@
(replace 'check (replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys) (lambda* (#:key tests? import-path #:allow-other-keys)
(when tests? (when tests?
;; We need to extend the timeout on some architectures.
;; 64 is the default in extra_test.go.
(setenv "GOLDMARK_TEST_TIMEOUT_MULTIPLIER"
(number->string (* 64 5)))
(with-directory-excursion (string-append "src/" import-path) (with-directory-excursion (string-append "src/" import-path)
(invoke "go" "test" "-v" "./...")))))))) (invoke "go" "test" "-v" "./..."))))))))
(home-page "https://github.com/yuin/goldmark/") (home-page "https://github.com/yuin/goldmark/")