1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
From: "Dr. Tobias Quathamer" <toddy@debian.org>
Date: Fri, 30 Jan 2026 20:21:17 +0100
Subject: Disable test which needs https://github.com/bep/workers
That package is not yet packaged for Debian.
---
locales_test.go | 26 --------------------------
1 file changed, 26 deletions(-)
diff --git a/locales_test.go b/locales_test.go
index 5f20082..d013718 100644
--- a/locales_test.go
+++ b/locales_test.go
@@ -1,12 +1,9 @@
package localescompressed
import (
- "context"
- "errors"
"testing"
"time"
- "github.com/bep/workers"
qt "github.com/frankban/quicktest"
"github.com/gohugoio/locales"
"github.com/gohugoio/locales/currency"
@@ -65,29 +62,6 @@ func TestGetTranslator(t *testing.T) {
// find . -name "*.go" | xargs grep "New() locales.Translator" | wc -l in locales.
c.Assert(translatorFuncs, qt.HasLen, 764)
})
-
- c.Run("Para", func(c *qt.C) {
- p := workers.New(4)
- r, _ := p.Start(context.Background())
-
- for i := 0; i < 10; i++ {
- for _, locale := range []string{"nn_NO", "nn", "nyn", "sg", "se", "rwk", "mas"} {
- locale := locale
- r.Run(func() error {
- tnn := GetTranslator(locale)
- if tnn == nil {
- return errors.New("translator is nil")
- }
-
- if tnn.MonthWide(d.Month()) == "" {
- return errors.New("translator is invalid")
- }
-
- return nil
- })
- }
- }
- })
}
func TestGetCurrency(t *testing.T) {
|