Skip to content

Commit 562f425

Browse files
committed
fix test in TestClient_GetReportPage
1 parent 741f00e commit 562f425

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

go/client_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -160,22 +160,22 @@ func TestClient_GetLatestReport(t *testing.T) {
160160
}
161161

162162
func TestClient_GetReportPage(t *testing.T) {
163-
expectedInitialTS := uint64(1234567891)
163+
expectedInitialTS := uint64(1234567890)
164164

165165
expectedReportPage1 := &ReportPage{
166166
Reports: []*ReportResponse{
167-
{FeedID: feed1, FullReport: hexutil.Bytes(`report1 payload`)},
168-
{FeedID: feed1, FullReport: hexutil.Bytes(`report2 payload`)},
167+
{FeedID: feed1, ObservationsTimestamp: 1234567890, FullReport: hexutil.Bytes(`report1 payload`)},
168+
{FeedID: feed1, ObservationsTimestamp: 1234567891, FullReport: hexutil.Bytes(`report2 payload`)},
169169
},
170-
NextPageTS: 1234567899,
170+
NextPageTS: 1234567892,
171171
}
172172

173173
expectedReportPage2 := &ReportPage{
174174
Reports: []*ReportResponse{
175-
{FeedID: feed1, FullReport: hexutil.Bytes(`report3 payload`)},
176-
{FeedID: feed1, FullReport: hexutil.Bytes(`report4 payload`)},
175+
{FeedID: feed1, ObservationsTimestamp: 1234567892, FullReport: hexutil.Bytes(`report3 payload`)},
176+
{FeedID: feed1, ObservationsTimestamp: 1234567893, FullReport: hexutil.Bytes(`report4 payload`)},
177177
},
178-
NextPageTS: 1234567999,
178+
NextPageTS: 1234567894,
179179
}
180180

181181
ms := newMockServer(func(w http.ResponseWriter, r *http.Request) {

0 commit comments

Comments
 (0)