mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +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 query.Err != nil {
|
||||||
if errIsPrunedHistory(query.Err) {
|
if errIsPrunedHistory(query.Err) {
|
||||||
t.Logf("test case accessed pruned history")
|
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
|
return
|
||||||
}
|
}
|
||||||
if *query.ResultHash != query.calculateHash() {
|
if *query.ResultHash != query.calculateHash() {
|
||||||
|
|
@ -132,8 +133,9 @@ func (s *filterTestSuite) fullRangeQueryAndCheck(t *utesting.T, query *filterQue
|
||||||
if frQuery.Err != nil {
|
if frQuery.Err != nil {
|
||||||
if errIsPrunedHistory(frQuery.Err) {
|
if errIsPrunedHistory(frQuery.Err) {
|
||||||
t.Logf("test case accessed pruned history")
|
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
|
return
|
||||||
}
|
}
|
||||||
// filter out results outside the original query range
|
// filter out results outside the original query range
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue