1
0
mirror of https://github.com/go-task/task.git synced 2025-11-23 22:24:45 +02:00

fix: orderedmap race condition (#1972)

This commit is contained in:
Pete Davison
2024-12-30 17:58:45 +00:00
committed by GitHub
parent 2965841eb7
commit fd3532812e
5 changed files with 166 additions and 68 deletions

View File

@@ -183,7 +183,7 @@ func TestRequires(t *testing.T) {
buff.Reset()
require.NoError(t, e.Setup())
vars := &ast.Vars{}
vars := ast.NewVars()
vars.Set("foo", ast.Var{Value: "bar"})
require.NoError(t, e.Run(context.Background(), &ast.Call{
Task: "missing-var",