summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/reverseproxy/selectionpolicies_test.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2021-05-05 14:52:18 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2021-05-05 14:52:24 -0600
commita17c3b568d635ea45deb204d06e251810e94a7d6 (patch)
tree1625eda0514d8924c4993303ee9a8f93c16e3455 /modules/caddyhttp/reverseproxy/selectionpolicies_test.go
parent74f5d66c4826e177123859abae3981bd196bfdcf (diff)
reverseproxy: Minor logging improvements
Diffstat (limited to 'modules/caddyhttp/reverseproxy/selectionpolicies_test.go')
-rw-r--r--modules/caddyhttp/reverseproxy/selectionpolicies_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/reverseproxy/selectionpolicies_test.go b/modules/caddyhttp/reverseproxy/selectionpolicies_test.go
index 60a2702..c28799d 100644
--- a/modules/caddyhttp/reverseproxy/selectionpolicies_test.go
+++ b/modules/caddyhttp/reverseproxy/selectionpolicies_test.go
@@ -366,7 +366,7 @@ func TestCookieHashPolicy(t *testing.T) {
h := cookieHashPolicy.Select(pool, request, w)
cookieServer1 := w.Result().Cookies()[0]
if cookieServer1 == nil {
- t.Error("cookieHashPolicy should set a cookie")
+ t.Fatal("cookieHashPolicy should set a cookie")
}
if cookieServer1.Name != "lb" {
t.Error("cookieHashPolicy should set a cookie with name lb")