From cc9550888941491d4428a8da413c074513679f57 Mon Sep 17 00:00:00 2001 From: Caleb Doxsey Date: Fri, 18 Nov 2022 06:56:04 -0700 Subject: [PATCH] fix test --- proxy/handlers_test.go | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/proxy/handlers_test.go b/proxy/handlers_test.go index 3e6b1e517..d1b01049f 100644 --- a/proxy/handlers_test.go +++ b/proxy/handlers_test.go @@ -64,29 +64,6 @@ func TestProxy_Signout(t *testing.T) { } } -func TestProxy_userInfo(t *testing.T) { - opts := testOptions(t) - err := ValidateOptions(opts) - if err != nil { - t.Fatal(err) - } - proxy, err := New(&config.Config{Options: opts}) - if err != nil { - t.Fatal(err) - } - req := httptest.NewRequest(http.MethodGet, "/.pomerium/sign_out", nil) - rr := httptest.NewRecorder() - proxy.userInfo(rr, req) - if status := rr.Code; status != http.StatusFound { - t.Errorf("handler returned wrong status code: got %v want %v", status, http.StatusFound) - } - body := rr.Body.String() - want := proxy.state.Load().authenticateURL.String() - if !strings.Contains(body, want) { - t.Errorf("handler returned unexpected body: got %v want %s ", body, want) - } -} - func TestProxy_SignOut(t *testing.T) { t.Parallel() tests := []struct {