login fix

pull/727/head v0.90.57
hunterlong 2020-07-04 12:43:02 -07:00
parent 0229dbc59a
commit 158c53f56a
1 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ import (
"github.com/statping/statping/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"net/http/httptest"
"testing"
"time"
)
@ -214,7 +215,7 @@ func TestApiServiceRoutes(t *testing.T) {
URL: "/api/services/1/uptime_data" + startEndQuery,
Method: "GET",
ExpectedStatus: 200,
ResponseFunc: func(t *testing.T, resp []byte) error {
ResponseFunc: func(req *httptest.ResponseRecorder, t *testing.T, resp []byte) error {
var uptime *services.UptimeSeries
if err := json.Unmarshal(resp, &uptime); err != nil {
return err