From 1366bebf7f2c67a63315dc36d40adc3fac1a49cf Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 19 Jul 2019 13:54:53 +0200 Subject: [PATCH] Fixed typos in comments (#6175) Just a few nitpicky typo fixes. --- agent/consul/state/acl_test.go | 6 +++--- agent/consul/state/catalog_test.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/agent/consul/state/acl_test.go b/agent/consul/state/acl_test.go index c066e21a21..58c69f7433 100644 --- a/agent/consul/state/acl_test.go +++ b/agent/consul/state/acl_test.go @@ -2728,7 +2728,7 @@ func TestStateStore_ACLRole_Delete(t *testing.T) { t.Parallel() s := testACLStateStore(t) - // deletion of non-existant roles is not an error + // deletion of non-existent roles is not an error require.NoError(t, s.ACLRoleDeleteByName(3, "not-found")) require.NoError(t, s.ACLRoleDeleteByID(3, testRoleID_A)) }) @@ -3021,7 +3021,7 @@ func TestStateStore_ACLAuthMethod_Delete(t *testing.T) { t.Parallel() s := testACLStateStore(t) - // deletion of non-existant methods is not an error + // deletion of non-existent methods is not an error require.NoError(t, s.ACLAuthMethodDeleteByName(3, "not-found")) }) } @@ -3453,7 +3453,7 @@ func TestStateStore_ACLBindingRule_Delete(t *testing.T) { t.Parallel() s := testACLStateStore(t) - // deletion of non-existant rules is not an error + // deletion of non-existent rules is not an error require.NoError(t, s.ACLBindingRuleDeleteByID(3, "ed3ce1b8-3a16-4e2f-b82e-f92e3b92410d")) }) } diff --git a/agent/consul/state/catalog_test.go b/agent/consul/state/catalog_test.go index 8180ac60fd..9e5a15757f 100644 --- a/agent/consul/state/catalog_test.go +++ b/agent/consul/state/catalog_test.go @@ -3884,7 +3884,7 @@ func TestStateStore_ensureServiceCASTxn(t *testing.T) { require.NoError(t, err) tx.Commit() - // ensure no update happend + // ensure no update happened tx = s.db.Txn(false) _, nsRead, err = s.NodeService("node1", "foo") require.NoError(t, err)