mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
test case
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
257c935e82
commit
598468bd35
1 changed files with 2 additions and 2 deletions
|
|
@ -464,8 +464,8 @@ func TestInvalidGetRangeLogsRequest(t *testing.T) {
|
||||||
api = NewFilterAPI(sys, false)
|
api = NewFilterAPI(sys, false)
|
||||||
)
|
)
|
||||||
|
|
||||||
if _, err := api.GetLogs(context.Background(), FilterCriteria{FromBlock: big.NewInt(2), ToBlock: big.NewInt(1)}); err != nil {
|
if _, err := api.GetLogs(context.Background(), FilterCriteria{FromBlock: big.NewInt(2), ToBlock: big.NewInt(1)}); err != errInvalidBlockRange {
|
||||||
t.Errorf("Expected Logs for invalid range succeed, but got: %v", err)
|
t.Errorf("Expected Logs for invalid range return error, but got: %v", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue