Skip to content
Permalink
Browse files

hugolib: Adjust test for Go 1.12

  • Loading branch information...
bep committed Feb 19, 2019
1 parent 908692f commit b4148cd1d9ea889b81070d3e84a37bd5d23e5746
Showing with 2 additions and 1 deletion.
  1. +2 −1 hugolib/hugo_sites_build_errors_test.go
@@ -3,6 +3,7 @@ package hugolib
import (
"fmt"
"path/filepath"
"regexp"
"runtime"
"strings"
"testing"
@@ -211,7 +212,7 @@ func TestSiteBuildErrors(t *testing.T) {
assertBuildError: func(a testSiteBuildErrorAsserter, err error) {
assert.Error(err)
// This is fixed in latest Go source
if strings.Contains(runtime.Version(), "devel") {
if regexp.MustCompile("devel|12").MatchString(runtime.Version()) {
fe := a.getFileError(err)
assert.Equal(5, fe.Position().LineNumber)
assert.Equal(21, fe.Position().ColumnNumber)

0 comments on commit b4148cd

Please sign in to comment.
You can’t perform that action at this time.