Skip to content

Commit fe2c43e

Browse files
author
Naohiro Yoshida
committed
fix test
Signed-off-by: Naohiro Yoshida <naohiro.yoshida@datachain.jp>
1 parent 9e063d4 commit fe2c43e

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

module/header_query_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (ts *HeaderQueryTestSuite) TestErrorQueryFinalizedHeader() {
4545
return &types.Header{Number: big.NewInt(int64(height))}, nil
4646
}
4747

48-
headers, err = queryFinalizedHeader(fn, 360, 400)
48+
headers, err = queryFinalizedHeader(fn, 760, 1000)
4949
ts.Require().NoError(err)
5050
ts.Require().Nil(headers)
5151
}
@@ -60,9 +60,9 @@ func (ts *HeaderQueryTestSuite) TestSuccessQueryFinalizedHeader() {
6060
return &types.Header{Number: big.NewInt(int64(height))}, nil
6161
}
6262

63-
headers, err := queryFinalizedHeader(fn, 360, 402)
63+
headers, err := queryFinalizedHeader(fn, 760, 1002)
6464
ts.Require().NoError(err)
65-
ts.Require().Len(headers, 402-360)
65+
ts.Require().Len(headers, 1002-760)
6666
}
6767

6868
func (ts *HeaderQueryTestSuite) TestSuccessQueryLatestFinalizedHeader() {
@@ -78,9 +78,9 @@ func (ts *HeaderQueryTestSuite) TestSuccessQueryLatestFinalizedHeader() {
7878
height, h, err := queryLatestFinalizedHeader(getHeader, latestBlockNumber)
7979
ts.Require().NoError(err)
8080
ts.Require().Len(h, 3)
81-
ts.Require().Equal(int(height), 401)
81+
ts.Require().Equal(int(height), 1001)
8282
}
83-
for i := 403; i < 403+100; i++ {
83+
for i := 1003; i < 1003+100; i++ {
8484
verify(uint64(i))
8585
}
8686
}

0 commit comments

Comments
 (0)