From 5b2b2243bbf57418516b013e723564aba9fd31cb Mon Sep 17 00:00:00 2001 From: Ingo Oppermann Date: Tue, 14 Mar 2023 15:24:05 +0100 Subject: [PATCH] Fix report history tests --- http/handler/api/restream_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/http/handler/api/restream_test.go b/http/handler/api/restream_test.go index f470b9f0..a2964365 100644 --- a/http/handler/api/restream_test.go +++ b/http/handler/api/restream_test.go @@ -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)