failing test with golang 1.16
Bug #1930776 reported by
Dan Bungert
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
golang-github-nicksnyder-go-i18n.v2 (Debian) |
Fix Released
|
Unknown
|
|||
golang-github-nicksnyder-go-i18n.v2 (Ubuntu) |
Fix Released
|
Low
|
William Wilson |
Bug Description
Running tests with golang 1.16 results in the following test failure:
=== RUN TestExecute/
template_
--- FAIL: TestExecute (0.00s)
I have reported this upstream.
https:/
A fix is reasonably straightforward - one could just check that error is non-nil for example, instead of worrying about the exact error text. Or one could check that "unclosed action" is part of the error substring.
Changed in golang-github-nicksnyder-go-i18n.v2 (Debian): | |
status: | Unknown → New |
Changed in golang-github-nicksnyder-go-i18n.v2 (Ubuntu): | |
importance: | Undecided → Low |
Changed in golang-github-nicksnyder-go-i18n.v2 (Debian): | |
status: | New → Fix Released |
To post a comment you must log in.
This patch resolves the broken tests by checking if the string "unclosed action" is present in the error message rather than looking for the whole message. This allows it to work on all versions of go.
It has been forwarded upstream: https:/ /github. com/nicksnyder/ go-i18n/ pull/260
It has been forwarded to Debian: https:/ /bugs.debian. org/cgi- bin/bugreport. cgi?bug= 990236