From 127dd82fc83249bced8d1f4a33ee3b5a42cfa911 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 11 Mar 2018 17:57:01 +0000 Subject: [PATCH] spelling: expected --- api/agent_test.go | 2 +- command/agent/consul/unit_test.go | 4 ++-- nomad/job_endpoint_test.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/agent_test.go b/api/agent_test.go index 523f33fba..f5b74bd54 100644 --- a/api/agent_test.go +++ b/api/agent_test.go @@ -241,7 +241,7 @@ func TestAgents_Sort(t *testing.T) { for _, tt := range sortTests { sort.Sort(AgentMembersNameSort(tt.in)) if !reflect.DeepEqual(tt.in, tt.out) { - t.Errorf("\necpected: %s\nget : %s", tt.in, tt.out) + t.Errorf("\nexpected: %s\nget : %s", tt.in, tt.out) } } } diff --git a/command/agent/consul/unit_test.go b/command/agent/consul/unit_test.go index dd6b3477b..cbb6a0cf8 100644 --- a/command/agent/consul/unit_test.go +++ b/command/agent/consul/unit_test.go @@ -1190,12 +1190,12 @@ func TestConsul_DriverNetwork_AutoUse(t *testing.T) { case c.TCP != "": // Checks should always use host port though if c.TCP != ":1234" { // xPort - t.Errorf("exepcted service %s check 1's port to be %d but found %q", + t.Errorf("expected service %s check 1's port to be %d but found %q", v.Name, xPort, c.TCP) } case c.HTTP != "": if c.HTTP != "http://:1235" { // yPort - t.Errorf("exepcted service %s check 2's port to be %d but found %q", + t.Errorf("expected service %s check 2's port to be %d but found %q", v.Name, yPort, c.HTTP) } default: diff --git a/nomad/job_endpoint_test.go b/nomad/job_endpoint_test.go index 5b947a7d5..25c250a51 100644 --- a/nomad/job_endpoint_test.go +++ b/nomad/job_endpoint_test.go @@ -2450,7 +2450,7 @@ func TestJobEndpoint_GetJobSummary(t *testing.T) { } if !reflect.DeepEqual(resp2.JobSummary, &expectedJobSummary) { - t.Fatalf("exptected: %v, actual: %v", expectedJobSummary, resp2.JobSummary) + t.Fatalf("expected: %v, actual: %v", expectedJobSummary, resp2.JobSummary) } }