From c5945204a6f0c4f4bd6f7daecd50b880def39b3c Mon Sep 17 00:00:00 2001 From: Nick Ethier Date: Mon, 16 Apr 2018 13:54:01 -0400 Subject: [PATCH] command/agent: fix ptr ref in job endpoint test --- command/agent/job_endpoint_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command/agent/job_endpoint_test.go b/command/agent/job_endpoint_test.go index 187615bcf..6323e371b 100644 --- a/command/agent/job_endpoint_test.go +++ b/command/agent/job_endpoint_test.go @@ -298,9 +298,9 @@ func TestHTTP_JobsParse(t *testing.T) { } if job.Datacenters == nil || - *job.Datacenters[0] != expected.Datacenters[0] { + job.Datacenters[0] != expected.Datacenters[0] { t.Fatalf("job datacenters is '%s', expected '%s'", - *job.Datacenters[0], expected.Datacenters[0]) + job.Datacenters[0], expected.Datacenters[0]) } }) }