mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
cleanup: replace TypeToPtr helper methods with pointer.Of (#14151)
Bumping compile time requirement to go 1.18 allows us to simplify our pointer helper methods.
This commit is contained in:
committed by
GitHub
parent
b9fec224ba
commit
c4be2c6078
@@ -8,7 +8,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/hashicorp/nomad/ci"
|
||||
"github.com/hashicorp/nomad/helper"
|
||||
"github.com/hashicorp/nomad/helper/pointer"
|
||||
"github.com/mitchellh/cli"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
@@ -394,7 +394,7 @@ func TestIsValidConfig(t *testing.T) {
|
||||
Client: &ClientConfig{
|
||||
Enabled: true,
|
||||
Artifact: &config.ArtifactConfig{
|
||||
HTTPReadTimeout: helper.StringToPtr("-10m"),
|
||||
HTTPReadTimeout: pointer.Of("-10m"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user