From e0bf179c1a0ee2fd6847ebb443ddd36fe8fc5421 Mon Sep 17 00:00:00 2001 From: reallylowest <165399701+reallylowest@users.noreply.github.com> Date: Sat, 30 Mar 2024 10:45:42 +0800 Subject: [PATCH] modules: fix some typo in conments (#6206) Signed-off-by: reallylowest --- modules/caddyhttp/reverseproxy/selectionpolicies_test.go | 2 +- modules/caddytls/connpolicy_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/caddyhttp/reverseproxy/selectionpolicies_test.go b/modules/caddyhttp/reverseproxy/selectionpolicies_test.go index 1adb1cb2..a4701ce8 100644 --- a/modules/caddyhttp/reverseproxy/selectionpolicies_test.go +++ b/modules/caddyhttp/reverseproxy/selectionpolicies_test.go @@ -120,7 +120,7 @@ func TestWeightedRoundRobinPolicy(t *testing.T) { h = wrrPolicy.Select(pool, req, nil) if h != pool[0] { - t.Error("Expected to select first host on availablity.") + t.Error("Expected to select first host on availability.") } // mark host as full pool[1].countRequest(1) diff --git a/modules/caddytls/connpolicy_test.go b/modules/caddytls/connpolicy_test.go index 573b9c16..0caed289 100644 --- a/modules/caddytls/connpolicy_test.go +++ b/modules/caddytls/connpolicy_test.go @@ -145,7 +145,7 @@ func TestClientAuthenticationUnmarshalCaddyfileWithDirectiveName(t *testing.T) { wantErr: true, }, { - name: "using 'trusted_ca_cert' adapts sucessfully", + name: "using 'trusted_ca_cert' adapts successfully", args: args{ d: caddyfile.NewTestDispenser(fmt.Sprintf(` client_auth {