mirror of https://github.com/statping/statping
login fix
parent
0a91e49416
commit
0229dbc59a
|
@ -1,3 +1,6 @@
|
||||||
|
# 0.90.57 (07-04-2020)
|
||||||
|
- Fixed login issue
|
||||||
|
|
||||||
# 0.90.56 (06-25-2020)
|
# 0.90.56 (06-25-2020)
|
||||||
- Modified metrics now include service name for each service metric
|
- Modified metrics now include service name for each service metric
|
||||||
- Added switch for true/false notifier values
|
- Added switch for true/false notifier values
|
||||||
|
|
|
@ -264,7 +264,7 @@ func TestMainApiRoutes(t *testing.T) {
|
||||||
|
|
||||||
type HttpFuncTest func(*testing.T) error
|
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
|
// HTTPTest contains all the parameters for a HTTP Unit Test
|
||||||
type HTTPTest struct {
|
type HTTPTest struct {
|
||||||
|
@ -350,7 +350,7 @@ func RunHTTPTest(test HTTPTest, t *testing.T) (string, *testing.T, error) {
|
||||||
assert.Nil(t, err)
|
assert.Nil(t, err)
|
||||||
}
|
}
|
||||||
if test.ResponseFunc != nil {
|
if test.ResponseFunc != nil {
|
||||||
err := test.ResponseFunc(t, body)
|
err := test.ResponseFunc(rr, t, body)
|
||||||
assert.Nil(t, err)
|
assert.Nil(t, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
0.90.56
|
0.90.57
|
||||||
|
|
Loading…
Reference in New Issue