chore: replace hardcoded node name with a constant (#16692)

This commit is contained in:
cskh 2023-03-20 16:18:59 -04:00 committed by GitHub
parent c423a0c7c5
commit c23de0633f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -192,8 +192,9 @@ func TestAPI_HealthChecks_AggregatedStatus(t *testing.T) {
func TestAPI_HealthChecks(t *testing.T) {
t.Parallel()
const nodename = "node123"
c, s := makeClientWithConfig(t, nil, func(conf *testutil.TestServerConfig) {
conf.NodeName = "node123"
conf.NodeName = nodename
})
defer s.Stop()
@ -215,7 +216,7 @@ func TestAPI_HealthChecks(t *testing.T) {
retry.Run(t, func(r *retry.R) {
checks := HealthChecks{
&HealthCheck{
Node: "node123",
Node: nodename,
CheckID: "service:foo",
Name: "Service 'foo' check",
Status: "critical",