mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 13:16:42 +00:00
fix tests
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
222c319026
commit
97e0942f12
1 changed files with 1 additions and 16 deletions
|
|
@ -797,7 +797,7 @@ func TestLogsSubscription(t *testing.T) {
|
||||||
// from 1 to latest
|
// from 1 to latest
|
||||||
{
|
{
|
||||||
FilterCriteria{FromBlock: big.NewInt(1), ToBlock: big.NewInt(rpc.LatestBlockNumber.Int64())},
|
FilterCriteria{FromBlock: big.NewInt(1), ToBlock: big.NewInt(rpc.LatestBlockNumber.Int64())},
|
||||||
allLogs, newMockNotifier(), &rpc.Subscription{ID: rpc.NewID()}, nil, nil,
|
nil, newMockNotifier(), &rpc.Subscription{ID: rpc.NewID()}, errInvalidToBlock, nil,
|
||||||
},
|
},
|
||||||
// from 2 to latest
|
// from 2 to latest
|
||||||
{
|
{
|
||||||
|
|
@ -809,21 +809,6 @@ func TestLogsSubscription(t *testing.T) {
|
||||||
FilterCriteria{},
|
FilterCriteria{},
|
||||||
nil, newMockNotifier(), &rpc.Subscription{ID: rpc.NewID()}, nil, nil,
|
nil, newMockNotifier(), &rpc.Subscription{ID: rpc.NewID()}, nil, nil,
|
||||||
},
|
},
|
||||||
// from pending to pending
|
|
||||||
{
|
|
||||||
FilterCriteria{FromBlock: big.NewInt(rpc.PendingBlockNumber.Int64()), ToBlock: big.NewInt(rpc.PendingBlockNumber.Int64())},
|
|
||||||
nil, newMockNotifier(), &rpc.Subscription{ID: rpc.NewID()}, nil, nil,
|
|
||||||
},
|
|
||||||
// from latest to pending
|
|
||||||
{
|
|
||||||
FilterCriteria{FromBlock: big.NewInt(rpc.LatestBlockNumber.Int64()), ToBlock: big.NewInt(rpc.PendingBlockNumber.Int64())},
|
|
||||||
nil, newMockNotifier(), &rpc.Subscription{ID: rpc.NewID()}, nil, nil,
|
|
||||||
},
|
|
||||||
// from pending to latest
|
|
||||||
{
|
|
||||||
FilterCriteria{FromBlock: big.NewInt(rpc.PendingBlockNumber.Int64()), ToBlock: big.NewInt(rpc.LatestBlockNumber.Int64())},
|
|
||||||
nil, newMockNotifier(), &rpc.Subscription{ID: rpc.NewID()}, errInvalidFromTo, nil,
|
|
||||||
},
|
|
||||||
// from 1 to 3
|
// from 1 to 3
|
||||||
{
|
{
|
||||||
FilterCriteria{FromBlock: big.NewInt(1), ToBlock: big.NewInt(3)},
|
FilterCriteria{FromBlock: big.NewInt(1), ToBlock: big.NewInt(3)},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue