diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-21 21:52:31 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-21 21:52:31 +0800 |
commit | 38c7c589e4a1b08baaab5b81de6aca7fa853d284 (patch) | |
tree | b6b1a3e0f6c81b62b10b3b15b5e751ae0bd93c60 /rpc/api_test.go | |
parent | 9edb9a21bce97594928f8660e8e32df2cb25b74d (diff) | |
parent | 28e1971272d5bab6aa683d3bbe711226ca1fef98 (diff) | |
download | dexon-38c7c589e4a1b08baaab5b81de6aca7fa853d284.tar dexon-38c7c589e4a1b08baaab5b81de6aca7fa853d284.tar.gz dexon-38c7c589e4a1b08baaab5b81de6aca7fa853d284.tar.bz2 dexon-38c7c589e4a1b08baaab5b81de6aca7fa853d284.tar.lz dexon-38c7c589e4a1b08baaab5b81de6aca7fa853d284.tar.xz dexon-38c7c589e4a1b08baaab5b81de6aca7fa853d284.tar.zst dexon-38c7c589e4a1b08baaab5b81de6aca7fa853d284.zip |
Merge branch 'rpcfrontier' into develop
Diffstat (limited to 'rpc/api_test.go')
-rw-r--r-- | rpc/api_test.go | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/rpc/api_test.go b/rpc/api_test.go index ec03822c5..727ade007 100644 --- a/rpc/api_test.go +++ b/rpc/api_test.go @@ -2,9 +2,9 @@ package rpc import ( "encoding/json" - "sync" + // "sync" "testing" - "time" + // "time" ) func TestWeb3Sha3(t *testing.T) { @@ -24,33 +24,33 @@ func TestWeb3Sha3(t *testing.T) { } } -func TestFilterClose(t *testing.T) { - t.Skip() - api := &EthereumApi{ - logs: make(map[int]*logFilter), - messages: make(map[int]*whisperFilter), - quit: make(chan struct{}), - } - - filterTickerTime = 1 - api.logs[0] = &logFilter{} - api.messages[0] = &whisperFilter{} - var wg sync.WaitGroup - wg.Add(1) - go api.start() - go func() { - select { - case <-time.After(500 * time.Millisecond): - api.stop() - wg.Done() - } - }() - wg.Wait() - if len(api.logs) != 0 { - t.Error("expected logs to be empty") - } - - if len(api.messages) != 0 { - t.Error("expected messages to be empty") - } -} +// func TestFilterClose(t *testing.T) { +// t.Skip() +// api := &EthereumApi{ +// logs: make(map[int]*logFilter), +// messages: make(map[int]*whisperFilter), +// quit: make(chan struct{}), +// } + +// filterTickerTime = 1 +// api.logs[0] = &logFilter{} +// api.messages[0] = &whisperFilter{} +// var wg sync.WaitGroup +// wg.Add(1) +// go api.start() +// go func() { +// select { +// case <-time.After(500 * time.Millisecond): +// api.stop() +// wg.Done() +// } +// }() +// wg.Wait() +// if len(api.logs) != 0 { +// t.Error("expected logs to be empty") +// } + +// if len(api.messages) != 0 { +// t.Error("expected messages to be empty") +// } +// } |