mirror of
https://github.com/jimeh/go-golden.git
synced 2026-02-19 11:16:47 +00:00
feat(go)!: upgrade to Go 1.17 (from 1.15) (#6)
BREAKING CHANGE: Go 1.17 or later is now required, up from Go 1.15.
This commit is contained in:
@@ -3,7 +3,6 @@ package golden
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/jimeh/envctl"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
@@ -96,11 +95,13 @@ var envUpdateFuncTestCases = []struct {
|
||||
func TestEnvUpdateFunc(t *testing.T) {
|
||||
for _, tt := range envUpdateFuncTestCases {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
envctl.WithClean(tt.env, func() {
|
||||
got := EnvUpdateFunc()
|
||||
for k, v := range tt.env {
|
||||
t.Setenv(k, v)
|
||||
}
|
||||
|
||||
assert.Equal(t, tt.want, got)
|
||||
})
|
||||
got := EnvUpdateFunc()
|
||||
|
||||
assert.Equal(t, tt.want, got)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user