Repository: gohugoio/hugo (language: go)

Issue:
TestDecodeConfig/Basic fails in 0.99.1
I'm getting this error when running `go test -race "./..." -tags extended`:

```
--- FAIL: TestDecodeConfig (0.01s)
    --- FAIL: TestDecodeConfig/Basic (0.00s)
        config_test.go:83:
            error:
              values are not equal
            got:
              bool(false)
            want:
              bool(true)
            stack:
              /var/ram/hugo/modules/config_test.go:83
                c.Assert(hv.IsValid(), qt.Equals, true)

FAIL
FAIL    github.com/gohugoio/hugo/modules        22.640s
```

`export HUGO_BUILD_TAGS=extended && ./mage hugoRace && ./mage -v check` yields the same result.

<!-- Please answer these questions before submitting your issue. Thanks! -->

### What version of Hugo are you using (`hugo version`)?

<pre>
$ ./hugo version
hugo v0.99.1-d524067382e60ce2a2248c3133a1b3af206b6ef1+extended linux/amd64 BuildDate=2022-05-18T11:18:14Z
</pre>

### Does this issue reproduce with the latest release?

Yes.

### Workaround

Changing `max = "0.99.0"` to `max = "0.99.1"` in https://github.com/gohugoio/hugo/blob/v0.99.1/modules/config_test.go#L51 makes the error go away but i don't know if that is the right fix. 😊




Discussion / hints:
I was about to say that "it works for me and on GitHub", but it actually fails on my MacBook, too. Must me some combination of test flags ... Curious. Ok, thanks for the heads up.

Fix patch:
diff --git a/magefile.go b/magefile.go
index b63576c3c69..b2dc5477723 100644
--- a/magefile.go
+++ b/magefile.go
@@ -144,13 +144,6 @@ func Docker() error {
 
 // Run tests and linters
 func Check() {
-	if strings.Contains(runtime.Version(), "1.8") {
-		// Go 1.8 doesn't play along with go test ./... and /vendor.
-		// We could fix that, but that would take time.
-		fmt.Printf("Skip Check on %s\n", runtime.Version())
-		return
-	}
-
 	if runtime.GOARCH == "amd64" && runtime.GOOS != "darwin" {
 		mg.Deps(Test386)
 	} else {


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 700c688827b..1403c4d572a 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -72,10 +72,11 @@ jobs:
         echo "6ae442129dbb3334bc21ef851261da6c0c1b560da790ca2e1350871d00ab816d  sass_embedded-1.0.0-beta.6-windows-x64.zip" | sha256sum -c;
         unzip sass_embedded-1.0.0-beta.6-windows-x64.zip;
         echo  "$env:GITHUB_WORKSPACE/sass_embedded/" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf-8 -Append
-    - name: Test
+    - name: Check
       run: |
-        mage -v test
         mage -v check;
+      env:
+        HUGO_BUILD_TAGS: extended
     - name: Build Docs
       env:
         HUGO_BUILD_TAGS: extended
diff --git a/modules/config_test.go b/modules/config_test.go
index 55d055dcc7d..371aab05617 100644
--- a/modules/config_test.go
+++ b/modules/config_test.go
@@ -48,7 +48,7 @@ func TestDecodeConfig(t *testing.T) {
 
 [module.hugoVersion]
 min = "0.54.2"
-max = "0.99.0"
+max = "0.199.0"
 extended = true
 
 [[module.mounts]]
diff --git a/resources/resource_transformers/tocss/scss/integration_test.go b/resources/resource_transformers/tocss/scss/integration_test.go
index 72c0fd988e9..13b664cc723 100644
--- a/resources/resource_transformers/tocss/scss/integration_test.go
+++ b/resources/resource_transformers/tocss/scss/integration_test.go
@@ -236,7 +236,7 @@ T1: {{ $r.Content }}
 			}).BuildE()
 
 		b.Assert(err, qt.IsNotNil)
-		b.Assert(err.Error(), qt.Contains, filepath.FromSlash(`assets/scss/components/_foo.scss:2:1": expected ':' after $foocolor in assignment statement`))
+		b.Assert(err.Error(), qt.Contains, `assets/scss/components/_foo.scss:2:1": expected ':' after $foocolor in assignment statement`)
 		fe := b.AssertIsFileError(err)
 		b.Assert(fe.ErrorContext(), qt.IsNotNil)
 		b.Assert(fe.ErrorContext().Lines, qt.DeepEquals, []string{"/* comment line 1 */", "$foocolor #ccc;", "", "foo {"})