From 0229dbc59af7d2950f2f5d948010758c27b4f941 Mon Sep 17 00:00:00 2001 From: hunterlong Date: Sat, 4 Jul 2020 12:18:56 -0700 Subject: [PATCH] login fix --- CHANGELOG.md | 3 +++ handlers/api_test.go | 4 ++-- version.txt | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cf99f370..ed5d2c48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 0.90.57 (07-04-2020) +- Fixed login issue + # 0.90.56 (06-25-2020) - Modified metrics now include service name for each service metric - Added switch for true/false notifier values diff --git a/handlers/api_test.go b/handlers/api_test.go index 6fcb1550..dd2c4605 100644 --- a/handlers/api_test.go +++ b/handlers/api_test.go @@ -264,7 +264,7 @@ func TestMainApiRoutes(t *testing.T) { type HttpFuncTest func(*testing.T) error -type ResponseFunc func(*testing.T, []byte) error +type ResponseFunc func(*httptest.ResponseRecorder, *testing.T, []byte) error // HTTPTest contains all the parameters for a HTTP Unit Test type HTTPTest struct { @@ -350,7 +350,7 @@ func RunHTTPTest(test HTTPTest, t *testing.T) (string, *testing.T, error) { assert.Nil(t, err) } if test.ResponseFunc != nil { - err := test.ResponseFunc(t, body) + err := test.ResponseFunc(rr, t, body) assert.Nil(t, err) } diff --git a/version.txt b/version.txt index 2e31fdc9..e22042fe 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.90.56 +0.90.57