mirror of https://github.com/statping/statping
parent
0229dbc59a
commit
158c53f56a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue