mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
rpc: fix call to NewServer in tests
This commit is contained in:
parent
bfedb19b67
commit
6bb20a79e4
2 changed files with 2 additions and 2 deletions
|
|
@ -609,7 +609,7 @@ func (b *unsubscribeBlocker) readBatch() ([]*jsonrpcMessage, bool, error) {
|
||||||
func TestUnsubscribeTimeout(t *testing.T) {
|
func TestUnsubscribeTimeout(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
srv := NewServer()
|
srv := NewServer("", 1, time.Second)
|
||||||
srv.RegisterName("nftest", new(notificationTestService))
|
srv.RegisterName("nftest", new(notificationTestService))
|
||||||
|
|
||||||
// Setup middleware to block on unsubscribe.
|
// Setup middleware to block on unsubscribe.
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ import (
|
||||||
func TestServerRegisterName(t *testing.T) {
|
func TestServerRegisterName(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
server := NewServer()
|
server := NewServer("", 1, time.Second)
|
||||||
service := new(testService)
|
service := new(testService)
|
||||||
|
|
||||||
svcName := "test"
|
svcName := "test"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue