Fix report history tests

This commit is contained in:
Ingo Oppermann 2023-03-14 15:24:05 +01:00
parent 206c81d7e8
commit 5b2b2243bb
No known key found for this signature in database
GPG Key ID: 2AB32426E9DD229E

View File

@ -342,7 +342,7 @@ func TestProcessReportAt(t *testing.T) {
require.Equal(t, 1, len(x.History))
at := x.History[0].CreatedAt
at := x.History[0].ExitedAt
mock.Request(t, http.StatusOK, router, "GET", "/test/report/"+strconv.FormatInt(at, 10), nil)
mock.Request(t, http.StatusNotFound, router, "GET", "/test/report/1234", nil)
@ -384,8 +384,8 @@ func TestSearchReportHistory(t *testing.T) {
require.Equal(t, 2, len(x.History))
time1 := x.History[0].CreatedAt
time2 := x.History[1].CreatedAt
time1 := x.History[0].ExitedAt
time2 := x.History[1].ExitedAt
response = mock.Request(t, http.StatusOK, router, "GET", "/report/process", nil)