mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
fix workload filter logs test error check
This commit is contained in:
parent
8847102add
commit
bcd5a64382
1 changed files with 4 additions and 2 deletions
|
|
@ -112,8 +112,9 @@ func (s *filterTestSuite) queryAndCheck(t *utesting.T, query *filterQuery) {
|
|||
if query.Err != nil {
|
||||
if errIsPrunedHistory(query.Err) {
|
||||
t.Logf("test case accessed pruned history")
|
||||
} else {
|
||||
t.Errorf("Filter query failed (fromBlock: %d toBlock: %d addresses: %v topics: %v error: %v)", query.FromBlock, query.ToBlock, query.Address, query.Topics, query.Err)
|
||||
}
|
||||
t.Errorf("Filter query failed (fromBlock: %d toBlock: %d addresses: %v topics: %v error: %v)", query.FromBlock, query.ToBlock, query.Address, query.Topics, query.Err)
|
||||
return
|
||||
}
|
||||
if *query.ResultHash != query.calculateHash() {
|
||||
|
|
@ -132,8 +133,9 @@ func (s *filterTestSuite) fullRangeQueryAndCheck(t *utesting.T, query *filterQue
|
|||
if frQuery.Err != nil {
|
||||
if errIsPrunedHistory(frQuery.Err) {
|
||||
t.Logf("test case accessed pruned history")
|
||||
} else {
|
||||
t.Errorf("Full range filter query failed (addresses: %v topics: %v error: %v)", frQuery.Address, frQuery.Topics, frQuery.Err)
|
||||
}
|
||||
t.Errorf("Full range filter query failed (addresses: %v topics: %v error: %v)", frQuery.Address, frQuery.Topics, frQuery.Err)
|
||||
return
|
||||
}
|
||||
// filter out results outside the original query range
|
||||
|
|
|
|||
Loading…
Reference in a new issue