Skip to content

Commit

Permalink
fix backport of #14310
Browse files Browse the repository at this point in the history
  • Loading branch information
lgfa29 committed Aug 25, 2022
1 parent 87af81c commit ef0bb72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion command/agent/agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"github.com/hashicorp/nomad/helper/testlog"
"github.com/hashicorp/nomad/nomad/structs"
"github.com/hashicorp/nomad/nomad/structs/config"
"github.com/shoenig/test/must"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -994,7 +995,7 @@ func TestServer_Reload_VaultConfig(t *testing.T) {
})
defer agent.Shutdown()

newConfig := agent.GetConfig().Copy()
newConfig := agent.GetConfig()
newConfig.Vault = &config.VaultConfig{
Enabled: pointer.Of(true),
Token: "vault-token",
Expand Down

0 comments on commit ef0bb72

Please sign in to comment.