aboutsummaryrefslogtreecommitdiffstats
path: root/polling.js
diff options
context:
space:
mode:
Diffstat (limited to 'polling.js')
-rw-r--r--polling.js21
1 files changed, 16 insertions, 5 deletions
diff --git a/polling.js b/polling.js
index ea7dd982..8bd2b041 100644
--- a/polling.js
+++ b/polling.js
@@ -6,15 +6,26 @@ var utils = require('../lib/utils/utils');
var tests = [{
protocol: 'eth',
- args: ['pending'],
+ args: ['latest'],
firstResult: 1,
firstPayload: {
method: "eth_newBlockFilter",
- params: [
- "pending"
- ]
+ params: []
+ },
+ secondResult: ['0x1234'],
+ secondPayload: {
+ method: "eth_getFilterChanges"
+ }
+},
+{
+ protocol: 'eth',
+ args: ['pending'],
+ firstResult: 1,
+ firstPayload: {
+ method: "eth_newPendingTransactionFilter",
+ params: []
},
- secondResult: [null],
+ secondResult: ['0x1234'],
secondPayload: {
method: "eth_getFilterChanges"
}