From 6feee4e6da030141d0584e47f42ed5bdf79bcb68 Mon Sep 17 00:00:00 2001 From: Will McCutchen <will@mccutch.org> Date: Wed, 14 Jun 2017 08:34:27 -0700 Subject: [PATCH] Fix broken tests --- httpbin/handlers_test.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/httpbin/handlers_test.go b/httpbin/handlers_test.go index 5dd8424..eabffbd 100644 --- a/httpbin/handlers_test.go +++ b/httpbin/handlers_test.go @@ -1121,10 +1121,11 @@ func TestDigestAuth(t *testing.T) { status int }{ {"/digest-auth", http.StatusNotFound}, - {"/digest-auth/qop/user/pass", http.StatusNotImplemented}, - {"/digest-auth/user", http.StatusNotImplemented}, - {"/digest-auth/user/pass", http.StatusNotImplemented}, - {"/digest-auth/qop/user/pass/foo", http.StatusNotImplemented}, + {"/digest-auth/user", http.StatusNotFound}, + {"/digest-auth/user/pass", http.StatusNotFound}, + + {"/digest-auth/auth/user/pass", http.StatusUnauthorized}, + {"/digest-auth/auth/user/pass/MD5", http.StatusUnauthorized}, } for _, test := range tests { t.Run("ok"+test.url, func(t *testing.T) { -- GitLab