mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Revert "rpc: fix erroneous error-message in test (#28227)"
This reverts commit 22de582c86.
This commit is contained in:
parent
69d44639d0
commit
36a6192d46
1 changed files with 3 additions and 4 deletions
|
|
@ -32,8 +32,7 @@ func TestServerRegisterName(t *testing.T) {
|
|||
server := NewServer()
|
||||
service := new(testService)
|
||||
|
||||
svcName := "test"
|
||||
if err := server.RegisterName(svcName, service); err != nil {
|
||||
if err := server.RegisterName("test", service); err != nil {
|
||||
t.Fatalf("%v", err)
|
||||
}
|
||||
|
||||
|
|
@ -41,9 +40,9 @@ func TestServerRegisterName(t *testing.T) {
|
|||
t.Fatalf("Expected 2 service entries, got %d", len(server.services.services))
|
||||
}
|
||||
|
||||
svc, ok := server.services.services[svcName]
|
||||
svc, ok := server.services.services["test"]
|
||||
if !ok {
|
||||
t.Fatalf("Expected service %s to be registered", svcName)
|
||||
t.Fatalf("Expected service calc to be registered")
|
||||
}
|
||||
|
||||
wantCallbacks := 14
|
||||
|
|
|
|||
Loading…
Reference in a new issue